From 1257d97eadb2ed9a47a8ac3232ddf54869d5c452 Mon Sep 17 00:00:00 2001 From: Michal Schott Date: Tue, 5 May 2020 13:56:02 +0200 Subject: [PATCH] Be clean when this feature is disabled. --- cmd/kured/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/kured/main.go b/cmd/kured/main.go index 6bc0aed..ccc5457 100644 --- a/cmd/kured/main.go +++ b/cmd/kured/main.go @@ -351,7 +351,11 @@ func root(cmd *cobra.Command, args []string) { log.Infof("Reboot Sentinel: %s every %v", rebootSentinel, period) log.Infof("Blocking Pod Selectors: %v", podSelectors) log.Infof("Reboot on: %v", window) - log.Infof("Force annotation cleanup after: %v", annotationTTL) + if annotationTTL > 0 { + log.Info("Force annotation cleanup disabled.") + } else { + log.Infof("Force annotation cleanup after: %v", annotationTTL) + } go rebootAsRequired(nodeID, window, annotationTTL) go maintainRebootRequiredMetric(nodeID)