Skip to content

Commit 2e8942f

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 5a52634 commit 2e8942f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

pkg/features/kube_features.go

+1
Original file line numberDiff line numberDiff line change
@@ -1878,6 +1878,7 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate
18781878
}
18791879

18801880
func init() {
1881+
registerOpenshiftFeatures()
18811882
runtime.Must(utilfeature.DefaultMutableFeatureGate.AddVersioned(defaultVersionedKubernetesFeatureGates))
18821883
runtime.Must(zpagesfeatures.AddFeatureGates(utilfeature.DefaultMutableFeatureGate))
18831884

pkg/features/openshift_features.go

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package features
2+
3+
import (
4+
"k8s.io/apimachinery/pkg/util/version"
5+
"k8s.io/component-base/featuregate"
6+
)
7+
8+
var RouteExternalCertificate featuregate.Feature = "RouteExternalCertificate"
9+
var MinimumKubeletVersion featuregate.Feature = "MinimumKubeletVersion"
10+
11+
// registerOpenshiftFeatures injects openshift-specific feature gates
12+
func registerOpenshiftFeatures() {
13+
// Introduced in 4.16
14+
defaultVersionedKubernetesFeatureGates[RouteExternalCertificate] = featuregate.VersionedSpecs{
15+
{Version: version.MustParse("1.29"), Default: false, PreRelease: featuregate.Alpha},
16+
}
17+
}

0 commit comments

Comments
 (0)