From 9ae0f40a8f1074a7c997d6caf8c59e846fe32e41 Mon Sep 17 00:00:00 2001 From: berg Date: Thu, 16 Mar 2023 11:11:29 +0800 Subject: [PATCH] open partial feature-gates by default (#1214) --- pkg/features/kruise_features.go | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pkg/features/kruise_features.go b/pkg/features/kruise_features.go index 6ed4065867..ac9f3bdded 100644 --- a/pkg/features/kruise_features.go +++ b/pkg/features/kruise_features.go @@ -110,18 +110,18 @@ var defaultFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{ CloneSetShortHash: {Default: false, PreRelease: featuregate.Alpha}, KruisePodReadinessGate: {Default: false, PreRelease: featuregate.Alpha}, - PreDownloadImageForInPlaceUpdate: {Default: false, PreRelease: featuregate.Alpha}, + PreDownloadImageForInPlaceUpdate: {Default: true, PreRelease: featuregate.Alpha}, CloneSetPartitionRollback: {Default: false, PreRelease: featuregate.Alpha}, - ResourcesDeletionProtection: {Default: false, PreRelease: featuregate.Alpha}, - WorkloadSpread: {Default: false, PreRelease: featuregate.Alpha}, - PodUnavailableBudgetDeleteGate: {Default: false, PreRelease: featuregate.Alpha}, + ResourcesDeletionProtection: {Default: true, PreRelease: featuregate.Alpha}, + WorkloadSpread: {Default: true, PreRelease: featuregate.Alpha}, + PodUnavailableBudgetDeleteGate: {Default: true, PreRelease: featuregate.Alpha}, PodUnavailableBudgetUpdateGate: {Default: false, PreRelease: featuregate.Alpha}, TemplateNoDefaults: {Default: false, PreRelease: featuregate.Alpha}, - InPlaceUpdateEnvFromMetadata: {Default: false, PreRelease: featuregate.Alpha}, - StatefulSetAutoDeletePVC: {Default: false, PreRelease: featuregate.Alpha}, + InPlaceUpdateEnvFromMetadata: {Default: true, PreRelease: featuregate.Alpha}, + StatefulSetAutoDeletePVC: {Default: true, PreRelease: featuregate.Alpha}, SidecarSetPatchPodMetadataDefaultsAllowed: {Default: false, PreRelease: featuregate.Alpha}, SidecarTerminator: {Default: false, PreRelease: featuregate.Alpha}, - PodProbeMarkerGate: {Default: false, PreRelease: featuregate.Alpha}, + PodProbeMarkerGate: {Default: true, PreRelease: featuregate.Alpha}, PreDownloadImageForDaemonSetUpdate: {Default: false, PreRelease: featuregate.Alpha}, CloneSetEventHandlerOptimization: {Default: false, PreRelease: featuregate.Alpha}, } @@ -150,10 +150,14 @@ func SetDefaultFeatureGates() { _ = utilfeature.DefaultMutableFeatureGate.Set(fmt.Sprintf("%s=false", PodUnavailableBudgetDeleteGate)) _ = utilfeature.DefaultMutableFeatureGate.Set(fmt.Sprintf("%s=false", PodUnavailableBudgetUpdateGate)) _ = utilfeature.DefaultMutableFeatureGate.Set(fmt.Sprintf("%s=false", WorkloadSpread)) + _ = utilfeature.DefaultMutableFeatureGate.Set(fmt.Sprintf("%s=false", SidecarSetPatchPodMetadataDefaultsAllowed)) } if !utilfeature.DefaultFeatureGate.Enabled(KruiseDaemon) { _ = utilfeature.DefaultMutableFeatureGate.Set(fmt.Sprintf("%s=false", PreDownloadImageForInPlaceUpdate)) _ = utilfeature.DefaultMutableFeatureGate.Set(fmt.Sprintf("%s=false", DaemonWatchingPod)) _ = utilfeature.DefaultMutableFeatureGate.Set(fmt.Sprintf("%s=false", InPlaceUpdateEnvFromMetadata)) + _ = utilfeature.DefaultMutableFeatureGate.Set(fmt.Sprintf("%s=false", PreDownloadImageForDaemonSetUpdate)) + _ = utilfeature.DefaultMutableFeatureGate.Set(fmt.Sprintf("%s=false", PodProbeMarkerGate)) + _ = utilfeature.DefaultMutableFeatureGate.Set(fmt.Sprintf("%s=false", SidecarTerminator)) } }