Repository navigation
crd: explain why pod and service template specs are schemaless - #2184
Merged
Merged
Conversation
Replace "TODO specify PodSpec/ObjectMeta/ServiceSpec" in CHI, CHIT and CHK with the reason they stay x-kubernetes-preserve-unknown-fields: a structural schema pins them to the operator's k8s.io/api version, so the apiserver would silently prune newer fields, and the full PodSpec does not fit the CRD size limits. See #2084. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
alex-zaitsev
self-requested a review
December 3, 2026 07:29
alex-zaitsev
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the
# TODO specify PodSpec / ObjectMeta / ServiceSpeccomments in the CHI/CHIT and CHK CRD templates with the reason these nodes stayx-kubernetes-preserve-unknown-fields: true. This keeps the next contributor from trying to "fix" the TODO again (see #2084).k8s.io/apipins the spec to the operator's API version. The apiserver would then silently prune newer PodSpec/ServiceSpec fields on clusters newer than that version.kubectl applyand the Helm CRD ConfigMap.Only comments changed. The manifests were regenerated with
dev/build_manifests.sh, and the Helm CRDs are unaffected because comments are stripped there.🤖 Generated with Claude Code