Skip to content

Correct the Variant doc comment on Installation - #5135

Merged
caseydavenport merged 1 commit into
tigera:masterfrom
caseydavenport:casey-variant-doc-comment
Aug 4, 2026
Merged

Correct the Variant doc comment on Installation#5135
caseydavenport merged 1 commit into
tigera:masterfrom
caseydavenport:casey-variant-doc-comment

Conversation

@caseydavenport

Copy link
Copy Markdown
Member

The variant field on Installation documents itself as defaulting to Calico, which reads like an API guarantee. There is no CRD-level default on the field, and the operator now fills in whichever variant it booted as, so the comment is wrong either way.

Deliberately not adding a schema default to fix it: the overlay merge treats the empty value as "not specified", so a default would be written into the overlay object too and would win the merge, silently changing the variant for Enterprise clusters that use an overlay for something unrelated. Defaults can't be scoped to a single object name.

CORE-13244

None

There is no CRD default on the field, and the operator now defaults it to
the variant it booted as rather than always Calico.
@caseydavenport
caseydavenport merged commit 0f5a118 into tigera:master Aug 4, 2026
11 checks passed
@caseydavenport
caseydavenport deleted the casey-variant-doc-comment branch August 4, 2026 15:39
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