ProbeTerminationGracePeriod promote to GA

This commit is contained in:
Ryan Phillips
2022-12-06 09:18:47 -06:00
parent af92da5cb7
commit ae08fe1e19
4 changed files with 4 additions and 106 deletions

View File

@@ -495,7 +495,7 @@ func dropDisabledFields(
}
}
if !utilfeature.DefaultFeatureGate.Enabled(features.ProbeTerminationGracePeriod) && !probeGracePeriodInUse(oldPodSpec) {
if !probeGracePeriodInUse(oldPodSpec) {
// Set pod-level terminationGracePeriodSeconds to nil if the feature is disabled and it is not used
VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
if c.LivenessProbe != nil {