Skip to content

Commit

Permalink
CLE feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefftree committed Jul 24, 2024
1 parent e3e56eb commit 9b16b0d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
9 changes: 9 additions & 0 deletions pkg/features/kube_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ const (
// Allow the usage of options to fine-tune the cpumanager policies.
CPUManagerPolicyOptions featuregate.Feature = "CPUManagerPolicyOptions"

// owner: @jefftree
// kep: https://kep.k8s.io/4355
// alpha: v1.31
//
// Enables coordinated leader election in the API server
CoordinatedLeaderElection featuregate.Feature = "CoordinatedLeaderElection"

// owner: @trierra
// kep: http://kep.k8s.io/2589
// alpha: v1.23
Expand Down Expand Up @@ -1256,6 +1263,8 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS

genericfeatures.ConsistentListFromCache: {Default: false, PreRelease: featuregate.Alpha},

genericfeatures.CoordinatedLeaderElection: {Default: false, PreRelease: featuregate.Alpha},

genericfeatures.EfficientWatchResumption: {Default: true, PreRelease: featuregate.GA, LockToDefault: true},

genericfeatures.KMSv1: {Default: false, PreRelease: featuregate.Deprecated},
Expand Down
10 changes: 9 additions & 1 deletion staging/src/k8s.io/apiserver/pkg/features/kube_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package features

import (
"k8s.io/apimachinery/pkg/util/runtime"

utilfeature "k8s.io/apiserver/pkg/util/feature"
"k8s.io/component-base/featuregate"
)
Expand Down Expand Up @@ -112,6 +111,13 @@ const (
// Enables expression validation in Admission Control
ValidatingAdmissionPolicy featuregate.Feature = "ValidatingAdmissionPolicy"

// owner: @jefftree
// kep: https://kep.k8s.io/4355
// alpha: v1.31
//
// Enables coordinated leader election in the API server
CoordinatedLeaderElection featuregate.Feature = "CoordinatedLeaderElection"

// alpha: v1.20
// beta: v1.21
// GA: v1.24
Expand Down Expand Up @@ -360,6 +366,8 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS

ValidatingAdmissionPolicy: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.32

CoordinatedLeaderElection: {Default: false, PreRelease: featuregate.Alpha},

EfficientWatchResumption: {Default: true, PreRelease: featuregate.GA, LockToDefault: true},

KMSv1: {Default: false, PreRelease: featuregate.Deprecated},
Expand Down

0 comments on commit 9b16b0d

Please sign in to comment.