Skip to content

Commit 3ef75a7

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 ec99be2 commit 3ef75a7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

pkg/features/kube_features.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,6 +1880,7 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate
18801880
}
18811881

18821882
func init() {
1883+
registerOpenshiftFeatures()
18831884
runtime.Must(utilfeature.DefaultMutableFeatureGate.AddVersioned(defaultVersionedKubernetesFeatureGates))
18841885
runtime.Must(zpagesfeatures.AddFeatureGates(utilfeature.DefaultMutableFeatureGate))
18851886

pkg/features/openshift_features.go

Lines changed: 17 additions & 0 deletions
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)