Skip to content

Commit

Permalink
change CKE to proceed rebooting immediately after draining of node is…
Browse files Browse the repository at this point in the history
… completed
  • Loading branch information
YZ775 committed Mar 11, 2024
1 parent e2effd8 commit d7f34a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions op/reboot_decide.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ func ChooseDrainedNodes(c *cke.Cluster, apiServers map[string]bool, rqEntries []
}
if len(workerInProgress) >= maxConcurrentReboots {
return nil
} else if len(workerInProgress)+len(workerDrainable) <= maxConcurrentReboots {
return workerDrainable
} else if len(workerDrainable) > 0 {
return workerDrainable[:1]
} else {
return workerDrainable[:maxConcurrentReboots-len(workerInProgress)]
return nil
}
}

Expand Down

0 comments on commit d7f34a3

Please sign in to comment.