From 4633de961b7940f9655dd73b395fb8268d1c78d4 Mon Sep 17 00:00:00 2001 From: Xabier Napal Date: Thu, 29 Aug 2024 19:49:24 +0200 Subject: [PATCH] don't retry handling reboot uncordon on successful execution 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 6145e0e5..c8e1b155 100644 --- a/cmd/node-termination-handler.go +++ b/cmd/node-termination-handler.go @@ -168,8 +168,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")