add cpu manager to feature gate
@@ -38,6 +38,7 @@ const featureGateEnvVar = "FEATURE_GATES"
const (
dataVolumesGate = "DataVolumes"
+ cpuManager = "CPUManager"
)
func getNamespace() string {
@@ -87,3 +88,7 @@ func ParseFeatureGatesFromConfigMap() {
func DataVolumesEnabled() bool {
return strings.Contains(os.Getenv(featureGateEnvVar), dataVolumesGate)
}
+
+func CPUManagerEnabled() bool {
+ return strings.Contains(os.Getenv(featureGateEnvVar), cpuManager)
+}
