Skip to content

Commit

Permalink
don't retry handling reboot uncordon on successful execution (#1059)
Browse files Browse the repository at this point in the history
Signed-off-by: Xabier Napal <[email protected]>
  • Loading branch information
xabinapal authored Sep 12, 2024
1 parent 83a836d commit 498fc02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/node-termination-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 498fc02

Please sign in to comment.