Skip to content

Update managed CRDs before persisting Installation defaults - #4881

Merged
caseydavenport merged 1 commit into
tigera:masterfrom
caseydavenport:casey-kind-provider-upgrade
Jun 3, 2026
Merged

caseydavenport merged 1 commit into
tigera:masterfrom
caseydavenport:casey-kind-provider-upgrade

Conversation

@caseydavenport

Copy link
Copy Markdown
Member

Upgrading the operator on a kind cluster could get stuck, with the calico TigeraStatus going Degraded and the install never progressing, reporting spec.kubernetesProvider: Unsupported value: "Kind" on a loop.

The operator autodetects the Kubernetes provider and writes it back to the Installation, but it did that before updating its managed CRDs. On an upgrade across the version that added the Kind provider value, the older CRD still being served rejected the write, and the reconcile bailed out before ever reaching the CRD update, so it never refreshed the CRD that would accept the value. This moves the CRD update ahead of the write-back so the autodetected value is accepted.

Tracked in CORE-12945.

Fixes an operator upgrade that could stall on kind clusters, looping on an unsupported "Kind" kubernetesProvider value instead of completing.

The CRD update now runs before the defaulted Installation is written back, so an autodetected kubernetesProvider value is accepted by the served CRD during an upgrade.
@caseydavenport
caseydavenport merged commit b38dff7 into tigera:master Jun 3, 2026
5 checks passed
@caseydavenport
caseydavenport deleted the casey-kind-provider-upgrade branch June 3, 2026 19:42
caseydavenport added a commit that referenced this pull request Jun 3, 2026
…4882)

The CRD update now runs before the defaulted Installation is written back, so an autodetected kubernetesProvider value is accepted by the served CRD during an upgrade.

(cherry picked from commit b38dff7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants