#13693·calico

Operator controllers continuously conflict on shared imagePullSecret in calico-system (ownerReference thrash) on v1.42.5

Author: caseydavenportCreated Aug 31, 2026Updated Oct 1, 2026
Labelsstale

Moved from https://github.com/tigera/operator/issues/5265, opened by @jlestrange on 2026-08-27.

Original comment thread stays readable at the link above.


Environment

  • tigera-operator: v1.42.5 (quay.io/tigera/operator:v1.42.5)
  • Calico (open source): v3.32.1
  • Kubernetes: v1.35.6-eks (Amazon EKS)
  • Variant: Calico; Installation.spec.registry unset (images pull from public quay.io/calico/*)
  • Installation.spec.imagePullSecrets: [{name: dockerhub}] (a Docker Hub pull secret used org-wide to avoid Docker Hub rate limits; not actually required for the quay.io Calico images, but set globally)
  • Components enabled: APIServer, Whisker, Goldmane (CR instances all named default)

Symptom The operator logs a steady stream of optimistic-lock (409) conflicts, all on secret/dockerhub in calico-system:

{"level":"error","logger":"goldmane-controller","msg":"Failed to create or update object",
 "component":"*goldmane.Component","key":{"name":"dockerhub","namespace":"calico-system"},
 "error":"Operation cannot be fulfilled on secrets \"dockerhub\": the object has been modified;
  please apply your changes to the latest version and try again"}

Over a 20-minute window the conflicting writers are:

  • whisker-controller (×4)
  • goldmane-controller (×5)
  • controller_apiserver (×1)
  • controller_installation (×1)

Root cause (as we understand it) Because Installation.spec.imagePullSecrets is set, multiple component controllers (Installation, APIServer, Whisker, Goldmane) each render secret/dockerhub into calico-system and each set their own CR as the controller: true / blockOwnerDeletion: true ownerReference. We observe the ownerReferences[0] (and the matching app.kubernetes.io/component label) flipping between Installation → Whisker → Goldmane → APIServer on successive reconciles, each write invalidating the others' resourceVersion → recurring 409 conflicts on every ~5-minute reconcile. We confirmed this is not caused by external controllers: Kyverno's secret-clone policy excludes calico-system, and Flux does not manage this object (verified: calico-system/dockerhub is not in the Flux kustomization inventory; only stale labels remain). The operator itself is the sole field-manager. This appears related to closed issue #1776 / PR #3976. It did not occur on our previous operator version v1.39.3 (which had no Whisker/Goldmane controllers).

Impact Functionally benign so far — all calico-system pods Running, images pull successfully, all TigeraStatus components report Available=True, Degraded=False. The concern is (a) continuous error-level log noise and (b) unnecessary write churn against the API server on large clusters. Questions

  1. Is there a supported way to designate a single controller as the source of truth for the shared imagePullSecret, so the component controllers stop re-claiming ownership of each other's rendered secret/dockerhub?
  2. For components pulling only from a public registry, is there a way to skip pull-secret propagation (without removing Installation.spec.imagePullSecrets globally)?
  3. Is a fix for this ownerReference contention planned for a v1.42.x patch or v1.43.x?