UPSTREAM: <drop>: add legacy --shutdown-delay-duration
@@ -217,6 +217,11 @@ func (s *ServerRunOptions) AddUniversalFlags(fs *pflag.FlagSet) {
"Time to delay the termination. During that time the server keeps serving requests normally and /healthz "+
"returns success, but /readzy immediately returns failure. Graceful termination starts after this delay "+
"has elapsed. This can be used to allow load balancer to stop sending traffic to this server.")
+ fs.DurationVar(&s.ShutdownDelayDuration, "minimal-shutdown-duration", s.ShutdownDelayDuration, ""+
+ "Time to delay the termination. During that time the server keeps serving requests normally and /healthz "+
+ "returns success, but /readzy immediately returns failure. Graceful termination starts after this delay "+
+ "has elapsed. This can be used to allow load balancer to stop sending traffic to this server.")
+ fs.MarkDeprecated("minimal-shutdown-duration", "use shutdown-delay-duration instead")
utilfeature.DefaultMutableFeatureGate.AddFlag(fs)
}
