Skip to content

Commit

Permalink
open partial feature-gates by default (openkruise#1214)
Browse files Browse the repository at this point in the history
Signed-off-by: liheng.zms <[email protected]>
  • Loading branch information
zmberg authored and diannaowa committed Jun 2, 2023
1 parent 573fdb2 commit 11f50e2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions pkg/features/kruise_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
}
Expand Down Expand Up @@ -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))
}
}

0 comments on commit 11f50e2

Please sign in to comment.