Merge pull request #130478 from aaron-prindle/add-declarative-validation-feature-gates

feat: add DeclarativeValidation and DeclarativeValidationMismatchMetric feature gates
This commit is contained in:
Kubernetes Prow Robot 2025-03-03 15:39:43 -08:00 committed by GitHub
commit 0125bc12bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 35 additions and 0 deletions

View File

@ -150,6 +150,21 @@ const (
// Enable usage of Provision of PVCs from snapshots in other namespaces
CrossNamespaceVolumeDataSource featuregate.Feature = "CrossNamespaceVolumeDataSource"
// owner: @thockin
// kep: http://kep.k8s.io/5073:
// beta: v1.33
//
// Enable declarative validation of APIs, where declared.
DeclarativeValidation featuregate.Feature = "DeclarativeValidation"
// owner: @thockin
// kep: http://kep.k8s.io/5073:
// beta: v1.33
//
// Enable declarative_validation_mismatch metric which outputs # of mismatch occurrences between
// hand-written and declarative validation rules.
DeclarativeValidationMismatchMetric featuregate.Feature = "DeclarativeValidationMismatchMetric"
// owner: @atiratree
// kep: http://kep.k8s.io/3973
//

View File

@ -144,6 +144,14 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate
{Version: version.MustParse("1.32"), Default: true, LockToDefault: true, PreRelease: featuregate.GA},
},
DeclarativeValidation: {
{Version: version.MustParse("1.33"), Default: false, PreRelease: featuregate.Beta},
},
DeclarativeValidationMismatchMetric: {
{Version: version.MustParse("1.33"), Default: false, PreRelease: featuregate.Beta},
},
DeploymentPodReplacementPolicy: {
{Version: version.MustParse("1.32"), Default: false, PreRelease: featuregate.Alpha},
},

View File

@ -364,6 +364,18 @@
lockToDefault: true
preRelease: GA
version: "1.32"
- name: DeclarativeValidation
versionedSpecs:
- default: false
lockToDefault: false
preRelease: Beta
version: "1.33"
- name: DeclarativeValidationMismatchMetric
versionedSpecs:
- default: false
lockToDefault: false
preRelease: Beta
version: "1.33"
- name: DeploymentPodReplacementPolicy
versionedSpecs:
- default: false