From 5a86ef40e87b784ade4aed0ed1b9713da38158d2 Mon Sep 17 00:00:00 2001 From: Cameron McAvoy Date: Wed, 7 Apr 2021 17:17:33 -0500 Subject: [PATCH] Update the default drain timeout to be infinite --- cmd/kured/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kured/main.go b/cmd/kured/main.go index 71031ab..7335f41 100644 --- a/cmd/kured/main.go +++ b/cmd/kured/main.go @@ -98,8 +98,8 @@ func main() { "force a reboot even if the drain is still running (default false)") rootCmd.PersistentFlags().IntVar(&drainGracePeriod, "drain-grace-period", -1, "grace period of time for pods to wait for the node drain in seconds (default -1)") - rootCmd.PersistentFlags().DurationVar(&drainTimeout, "drain-timeout", time.Minute*30, - "timeout after which the drain is aborted (default: 30m)") + rootCmd.PersistentFlags().DurationVar(&drainTimeout, "drain-timeout", 0, + "timeout after which the drain is aborted (default: 0, infinite time)") rootCmd.PersistentFlags().DurationVar(&period, "period", time.Minute*60, "sentinel check period") rootCmd.PersistentFlags().StringVar(&dsNamespace, "ds-namespace", "kube-system",