@@ -150,20 +150,27 @@ const (
150
150
// Enable usage of Provision of PVCs from snapshots in other namespaces
151
151
CrossNamespaceVolumeDataSource featuregate.Feature = "CrossNamespaceVolumeDataSource"
152
152
153
- // owner: @thockin
154
- // kep: http://kep.k8s.io/5073:
153
+ // owner: @jpbetz @aaron-prindle @yongruilin
154
+ // kep: http://kep.k8s.io/5073
155
155
// beta: v1.33
156
156
//
157
- // Enable declarative validation of APIs, where declared.
157
+ // Enables running declarative validation of APIs, where declared. When enabled, APIs with
158
+ // declarative validation rules will validate objects using the generated
159
+ // declarative validation code and compare the results to the regular imperative validation.
160
+ // See DeclarativeValidationTakeover for more.
158
161
DeclarativeValidation featuregate.Feature = "DeclarativeValidation"
159
162
160
- // owner: @thockin
161
- // kep: http://kep.k8s.io/5073:
163
+ // owner: @jpbetz @aaron-prindle @yongruilin
164
+ // kep: http://kep.k8s.io/5073
162
165
// beta: v1.33
163
166
//
164
- // Enable declarative_validation_mismatch metric which outputs # of mismatch occurrences between
165
- // hand-written and declarative validation rules.
166
- DeclarativeValidationMismatchMetric featuregate.Feature = "DeclarativeValidationMismatchMetric"
167
+ // When enabled, declarative validation errors are returned directly to the caller,
168
+ // replacing hand-written validation errors for rules that have declarative implementations.
169
+ // When disabled, hand-written validation errors are always returned, effectively putting
170
+ // declarative validation in a "shadow mode" that monitors but does not affect API responses.
171
+ // Note: Although declarative validation aims for functional equivalence with hand-written validation,
172
+ // the exact number, format, and content of error messages may differ between the two approaches.
173
+ DeclarativeValidationTakeover featuregate.Feature = "DeclarativeValidationTakeover"
167
174
168
175
// owner: @atiratree
169
176
// kep: http://kep.k8s.io/3973
0 commit comments