Be clean when this feature is disabled.

This commit is contained in:
Michal Schott
2020-05-05 14:10:23 +02:00
parent 1fc2522c0f
commit 1257d97ead
+5 -1
View File
@@ -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)