@@ -113,6 +113,9 @@ const (
113
113
114
114
// DeletionProtectionForCRDCascadingGate enable deletionProtection for crd Cascading
115
115
DeletionProtectionForCRDCascadingGate featuregate.Feature = "DeletionProtectionForCRDCascadingGate"
116
+
117
+ // Enables a enhanced livenessProbe solution
118
+ EnhancedLivenessProbeGate featuregate.Feature = "EnhancedLivenessProbe"
116
119
)
117
120
118
121
var defaultFeatureGates = map [featuregate.Feature ]featuregate.FeatureSpec {
@@ -135,11 +138,14 @@ var defaultFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{
135
138
SidecarTerminator : {Default : false , PreRelease : featuregate .Alpha },
136
139
PodProbeMarkerGate : {Default : true , PreRelease : featuregate .Alpha },
137
140
PreDownloadImageForDaemonSetUpdate : {Default : false , PreRelease : featuregate .Alpha },
138
- CloneSetEventHandlerOptimization : {Default : false , PreRelease : featuregate .Alpha },
139
- PreparingUpdateAsUpdate : {Default : false , PreRelease : featuregate .Alpha },
140
- ImagePullJobGate : {Default : false , PreRelease : featuregate .Alpha },
141
- ResourceDistributionGate : {Default : false , PreRelease : featuregate .Alpha },
142
- DeletionProtectionForCRDCascadingGate : {Default : false , PreRelease : featuregate .Alpha },
141
+
142
+ CloneSetEventHandlerOptimization : {Default : false , PreRelease : featuregate .Alpha },
143
+ PreparingUpdateAsUpdate : {Default : false , PreRelease : featuregate .Alpha },
144
+ ImagePullJobGate : {Default : false , PreRelease : featuregate .Alpha },
145
+ ResourceDistributionGate : {Default : false , PreRelease : featuregate .Alpha },
146
+ DeletionProtectionForCRDCascadingGate : {Default : false , PreRelease : featuregate .Alpha },
147
+
148
+ EnhancedLivenessProbeGate : {Default : false , PreRelease : featuregate .Alpha },
143
149
}
144
150
145
151
func init () {
@@ -167,6 +173,7 @@ func SetDefaultFeatureGates() {
167
173
_ = utilfeature .DefaultMutableFeatureGate .Set (fmt .Sprintf ("%s=false" , PodUnavailableBudgetUpdateGate ))
168
174
_ = utilfeature .DefaultMutableFeatureGate .Set (fmt .Sprintf ("%s=false" , WorkloadSpread ))
169
175
_ = utilfeature .DefaultMutableFeatureGate .Set (fmt .Sprintf ("%s=false" , SidecarSetPatchPodMetadataDefaultsAllowed ))
176
+ _ = utilfeature .DefaultMutableFeatureGate .Set (fmt .Sprintf ("%s=false" , EnhancedLivenessProbeGate ))
170
177
}
171
178
if ! utilfeature .DefaultFeatureGate .Enabled (KruiseDaemon ) {
172
179
_ = utilfeature .DefaultMutableFeatureGate .Set (fmt .Sprintf ("%s=false" , PreDownloadImageForInPlaceUpdate ))
@@ -176,6 +183,7 @@ func SetDefaultFeatureGates() {
176
183
_ = utilfeature .DefaultMutableFeatureGate .Set (fmt .Sprintf ("%s=false" , PodProbeMarkerGate ))
177
184
_ = utilfeature .DefaultMutableFeatureGate .Set (fmt .Sprintf ("%s=false" , SidecarTerminator ))
178
185
_ = utilfeature .DefaultMutableFeatureGate .Set (fmt .Sprintf ("%s=false" , ImagePullJobGate ))
186
+ _ = utilfeature .DefaultMutableFeatureGate .Set (fmt .Sprintf ("%s=false" , EnhancedLivenessProbeGate ))
179
187
}
180
188
if utilfeature .DefaultFeatureGate .Enabled (PreDownloadImageForInPlaceUpdate ) || utilfeature .DefaultFeatureGate .Enabled (PreDownloadImageForDaemonSetUpdate ) {
181
189
_ = utilfeature .DefaultMutableFeatureGate .Set (fmt .Sprintf ("%s=true" , ImagePullJobGate ))
0 commit comments