Skip to content

Commit

Permalink
UPSTREAM: <carry>: Add openshift feature gates to kube-apiserver - in…
Browse files Browse the repository at this point in the history
…ject openshift feature gates into pkg/features

Signed-off-by: Swarup Ghosh <swghosh@redhat.com>
  • Loading branch information
swghosh authored and soltysh committed Jul 1, 2024
1 parent 5fc7bb6 commit ea2129a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/features/kube_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ const (
)

func init() {
registerOpenshiftFeatures()
runtime.Must(utilfeature.DefaultMutableFeatureGate.Add(defaultKubernetesFeatureGates))
runtime.Must(utilfeature.DefaultMutableFeatureGate.AddVersioned(defaultVersionedKubernetesFeatureGates))

Expand Down
15 changes: 15 additions & 0 deletions pkg/features/openshift_features.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package features

import (
"k8s.io/component-base/featuregate"
)

var RouteExternalCertificate featuregate.Feature = "RouteExternalCertificate"

// registerOpenshiftFeatures injects openshift-specific feature gates
func registerOpenshiftFeatures() {
defaultKubernetesFeatureGates[RouteExternalCertificate] = featuregate.FeatureSpec{
Default: false,
PreRelease: featuregate.Alpha,
}
}

0 comments on commit ea2129a

Please sign in to comment.