Skip to content

Commit f733049

Browse files
committed
UPSTREAM: <carry>: Add openshift feature gates to kube-apiserver
- inject openshift feature gates into pkg/features Signed-off-by: Swarup Ghosh <[email protected]>
1 parent 23a9729 commit f733049

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

pkg/features/kube_features.go

+1
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,7 @@ const (
977977
)
978978

979979
func init() {
980+
registerOpenshiftFeatures()
980981
runtime.Must(utilfeature.DefaultMutableFeatureGate.Add(defaultKubernetesFeatureGates))
981982
}
982983

pkg/features/openshift_features.go

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package features
2+
3+
import (
4+
"k8s.io/component-base/featuregate"
5+
)
6+
7+
var RouteExternalCertificate featuregate.Feature = "RouteExternalCertificate"
8+
9+
// registerOpenshiftFeatures injects openshift-specific feature gates
10+
func registerOpenshiftFeatures() {
11+
defaultKubernetesFeatureGates[RouteExternalCertificate] = featuregate.FeatureSpec{
12+
Default: false,
13+
PreRelease: featuregate.Alpha,
14+
}
15+
}

0 commit comments

Comments
 (0)