Add LiveMigration feature gate
@@ -40,6 +40,7 @@ const featureGateEnvVar = "FEATURE_GATES"
const (
dataVolumesGate = "DataVolumes"
cpuManager = "CPUManager"
+ liveMigrationGate = "LiveMigration"
)
func ParseFeatureGatesFromConfigMap() {
@@ -88,3 +89,7 @@ func DataVolumesEnabled() bool {
func CPUManagerEnabled() bool {
return strings.Contains(os.Getenv(featureGateEnvVar), cpuManager)
}
+
+func LiveMigrationEnabled() bool {
+ return strings.Contains(os.Getenv(featureGateEnvVar), liveMigrationGate)
+}
