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
Add feature gate marker support for conditional CRD field inclusion
Implements +kubebuilder:feature-gate=<gate-name> marker that allows
fields to be conditionally included in generated CRDs based on
enabled feature gates.
- Add FeatureGate marker type in pkg/crd/markers/featuregate.go
- Register feature gate markers in marker registry
- Add CLI parameter crd:featureGates=gate1=true,gate2=false
- Implement conditional field inclusion in schema generation
- Add feature gate context to Parser struct
Addresses #1238
Summary: "marks a field to be conditionally included based on feature gate enablement",
44
+
Details: "Fields marked with +kubebuilder:feature-gate will only be included in generated CRDs when the specified feature gate is enabled via --feature-gates flag.",
45
+
},
46
+
FieldHelp: map[string]markers.DetailedHelp{
47
+
"": {
48
+
Summary: "the name of the feature gate that controls this field",
49
+
Details: "The feature gate name should match gates passed via --feature-gates=gate1=true,gate2=false",
0 commit comments