Repository navigation
docs(jumps): clarify field selector key constraints for resource jumps - #4062
Merged
uozalp merged 1 commit intoJun 18, 2026
Merged
Conversation
The Resource Jumps docs implied that labelSelector/fieldSelector templates can reference any field of a resource. The Go template only controls the selector value, computed from the source resource. The selector key is validated by the API server against the target resource. Field selector keys are restricted: most resources only allow metadata.name/metadata.namespace, and CRDs must declare the field in spec.versions[].selectableFields, otherwise the API returns 'field label not supported'. Note this distinction and link to the Kubernetes CRD selectable-fields docs.
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.
The Resource Jumps docs imply
fieldSelectorsupports any field, but the selector key is validated by the API server (CRDs only allow declaredselectableFields). Clarifies the value-vs-key distinction with a link to the Kubernetes docs. Verified against the code path (no client-side filtering).Closes #4060