Skip to content

Commit

Permalink
don't retry handling reboot uncordon on successful execution
Browse files Browse the repository at this point in the history
Signed-off-by: Xabier Napal <[email protected]>
  • Loading branch information
xabinapal committed Aug 29, 2024
1 parent eb3c7d0 commit cd1465c
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 @@ -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 true, 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 cd1465c

Please sign in to comment.