You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds two new markers to reduce CRD size when types have extensive documentation:
Spec-level: Skip description for specific specs
typeMyCRDstruct {
// This description will appear in the CRD ImportantFieldstring`json:"importantField"`// This long description won't appear in the CRD // +kubebuilder:skip:description LargeFieldComplexType`json:"largeField"`
}
Package-level: Skip all descriptions in a package
// +kubebuilder:skip:description package v1alpha1
Useful when CRDs exceed size limits due to extensive godoc comments on deeply nested types.
This pull-request has been approved by: camilamacedo86 Once this PR has been reviewed and has the lgtm label, please assign vincepri for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
Details
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
camilamacedo86
changed the title
chore(crd): Add +kubebuilder:skipfield:description and +kubebuilder:skip:description markers to omit field descriptions
✨ (crd): Add +kubebuilder:skipfield:description and +kubebuilder:skip:description markers to omit field descriptions
Apr 20, 2026
camilamacedo86
changed the title
✨ (crd): Add +kubebuilder:skipfield:description and +kubebuilder:skip:description markers to omit field descriptions
WIP ✨ (crd): Add +kubebuilder:skipfield:description and +kubebuilder:skip:description markers to omit field descriptions
Apr 20, 2026
camilamacedo86
changed the title
WIP ✨ (crd): Add +kubebuilder:skipfield:description and +kubebuilder:skip:description markers to omit field descriptions
WIP ✨ (crd): Add +kubebuilder:skip:description markers to omit package and spec descriptions
Apr 20, 2026
camilamacedo86
changed the title
WIP ✨ (crd): Add +kubebuilder:skip:description markers to omit package and spec descriptions
✨ (crd): Add +kubebuilder:skip:description markers to omit package and spec descriptions
Apr 20, 2026
Should this also work at the field level, or is it intentionally package/spec-scoped only? Worth documenting that scope explicitly in the marker definition so users don't go hunting.
Should this also work at the field level, or is it intentionally package/spec-scoped only? Worth documenting that scope explicitly in the marker definition so users don't go hunting.
Thank you for looking on this one.
But yes, it is the field level as well.
You can check the description examples
Please, feel free to let me know if the PR description does not clarifies this one.
Should this also work at the field level, or is it intentionally package/spec-scoped only? Worth documenting that scope explicitly in the marker definition so users don't go hunting.
Thank you for looking on this one. But yes, it is the field level as well. You can check the description examples
Please, feel free to let me know if the PR description does not clarifies this one.
Got it, thanks for clarifying! Checked the examples in the description - the field-level scope is clear from there. Makes sense as-is then. 👍
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
cncf-cla: yesIndicates the PR's author has signed the CNCF CLA.size/LDenotes a PR that changes 100-499 lines, ignoring generated files.
3 participants
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.
This adds two new markers to reduce CRD size when types have extensive documentation:
Useful when CRDs exceed size limits due to extensive godoc comments on deeply nested types.
Closes: #441