Skip to content

Commit d079c9f

Browse files
swghoshbertinatto
authored andcommitted
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 210b97b commit d079c9f

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
@@ -871,6 +871,7 @@ const (
871871
)
872872

873873
func init() {
874+
registerOpenshiftFeatures()
874875
runtime.Must(utilfeature.DefaultMutableFeatureGate.Add(defaultKubernetesFeatureGates))
875876
runtime.Must(utilfeature.DefaultMutableFeatureGate.AddVersioned(defaultVersionedKubernetesFeatureGates))
876877
runtime.Must(zpagesfeatures.AddFeatureGates(utilfeature.DefaultMutableFeatureGate))

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)