Skip to content

Commit 577c5e4

Browse files
swghoshjacobsee
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 72bf3d9 commit 577c5e4

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
@@ -2070,6 +2070,7 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate
20702070
}
20712071

20722072
func init() {
2073+
registerOpenshiftFeatures()
20732074
runtime.Must(utilfeature.DefaultMutableFeatureGate.AddVersioned(defaultVersionedKubernetesFeatureGates))
20742075
runtime.Must(zpagesfeatures.AddFeatureGates(utilfeature.DefaultMutableFeatureGate))
20752076

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)