From a0208153961cac9db2183c54313e01fec9e4b971 Mon Sep 17 00:00:00 2001 From: Steve Kuznetsov Date: Wed, 20 May 2026 06:57:46 -0600 Subject: [PATCH] fix: cpo: turn off cluster-api crdmigrator controller We do not provide the RBAC necessary to make this controller function, and we do not want or need its behavior. Turn off the controller by skipping all phases in order to remove lots of serious-looking 401 spam from logs that misleads humans and agents analyzing the logs. Signed-off-by: Steve Kuznetsov --- .../hostedcontrolplane/v2/assets/cluster-api/deployment.yaml | 1 + .../testdata/cluster-api/zz_fixture_TestReconcileComponents.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/assets/cluster-api/deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/v2/assets/cluster-api/deployment.yaml index 0eb5208281e..cb0a239490e 100644 --- a/control-plane-operator/controllers/hostedcontrolplane/v2/assets/cluster-api/deployment.yaml +++ b/control-plane-operator/controllers/hostedcontrolplane/v2/assets/cluster-api/deployment.yaml @@ -28,6 +28,7 @@ spec: - --leader-elect-lease-duration=137s - --leader-elect-retry-period=26s - --leader-elect-renew-deadline=107s + - --skip-crd-migration-phases=StorageVersionMigration,CleanupManagedFields env: - name: MY_NAMESPACE valueFrom: diff --git a/hypershift-operator/controllers/hostedcluster/testdata/cluster-api/zz_fixture_TestReconcileComponents.yaml b/hypershift-operator/controllers/hostedcluster/testdata/cluster-api/zz_fixture_TestReconcileComponents.yaml index 41854ee0f0a..e5100b4365a 100644 --- a/hypershift-operator/controllers/hostedcluster/testdata/cluster-api/zz_fixture_TestReconcileComponents.yaml +++ b/hypershift-operator/controllers/hostedcluster/testdata/cluster-api/zz_fixture_TestReconcileComponents.yaml @@ -68,6 +68,7 @@ spec: - --leader-elect-lease-duration=137s - --leader-elect-retry-period=26s - --leader-elect-renew-deadline=107s + - --skip-crd-migration-phases=StorageVersionMigration,CleanupManagedFields env: - name: MY_NAMESPACE valueFrom: