Add support for running the controller with replicas>1

Author: angusleesCreated Oct 31, 2017Updated Mar 2, 2026
Labelsenhancementbacklog

We need to ensure that the controller doesn't do the wrong thing with replicas>1, since that can happen during transient events like node/partition recovery, mis-configured upgrades, etc. Replicas>1 is a desirable feature for some HA configurations.

Note that this is just about avoiding breakage. Horizontal scalability (active/active or sharding) is not included in this issue.

Note also this could either be via a lock (as is typically done with other controllers), or via careful auditing of atomic operations and race recovery (sealed-secrets-controller only has very simple side-effects).