From 498fc02ddf35bc587bebe1798f37eab073d961cf Mon Sep 17 00:00:00 2001 From: Xabier Napal Date: Thu, 12 Sep 2024 17:41:14 +0200 Subject: [PATCH] don't retry handling reboot uncordon on successful execution (#1059) Signed-off-by: Xabier Napal --- cmd/node-termination-handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/node-termination-handler.go b/cmd/node-termination-handler.go index 2d703f86..fc906d4a 100644 --- a/cmd/node-termination-handler.go +++ b/cmd/node-termination-handler.go @@ -170,8 +170,9 @@ func main() { err = handleRebootUncordon(nthConfig.NodeName, interruptionEventStore, *node) if err != nil { log.Warn().Err(err).Msgf("Unable to complete the uncordon after reboot workflow on startup, retrying") + return false, nil } - return false, nil + return true, nil }) if err != nil { log.Warn().Err(err).Msgf("All retries failed, unable to complete the uncordon after reboot workflow")