From 8b41d593d078b520a9e700f6420b2e59a2b6d15d Mon Sep 17 00:00:00 2001 From: Blai Peidro Date: Thu, 17 Sep 2026 01:08:55 +0200 Subject: [PATCH] chore: retire the awx-operator leader election id The last awx in the operator's own install, and the one that had to go last. While the prefix rename is rolling out, an old awx-operator-* Deployment and a new ascender-operator-* one can be in a namespace at the same time, until hack/rename-operator-objects.sh removes the first. They pass the same --leader-election-id, so they contend for one lease and only one is ever active: an upgrade that has not been cleaned up is an idle standby rather than two controllers reconciling the same objects against different specs. Changing the id gives them separate leases and lets both act. So this waits until no operator carrying the old prefix is left anywhere, which means at least one release after the rename has been out and the cleanup has been run. The value is set twice, in config/manager/manager.yaml and again in the auth proxy patch, and the patch is the one that reaches the rendered Deployment. Changing only the first leaves the old id in the output, which is what rendering the manifests rather than trusting the edit showed. Nothing else references it. It is not a name any object carries, so there is nothing to migrate: the lease is recreated under the new id and the old one is garbage. --- config/default/manager_auth_proxy_patch.yaml | 2 +- config/manager/manager.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/default/manager_auth_proxy_patch.yaml b/config/default/manager_auth_proxy_patch.yaml index ece52bc..f9f06dd 100644 --- a/config/default/manager_auth_proxy_patch.yaml +++ b/config/default/manager_auth_proxy_patch.yaml @@ -37,4 +37,4 @@ spec: - "--health-probe-bind-address=:6789" - "--metrics-bind-address=127.0.0.1:8080" - "--leader-elect" - - "--leader-election-id=awx-operator" + - "--leader-election-id=ascender-operator" diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 5d70e16..550ae85 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -34,7 +34,7 @@ spec: containers: - args: - --leader-elect - - --leader-election-id=awx-operator + - --leader-election-id=ascender-operator image: controller:latest imagePullPolicy: IfNotPresent name: ascender-manager