mirror of
https://github.com/kubereboot/kured.git
synced 2026-08-28 05:47:23 +00:00
Merge pull request #294 from jackfrancis/always-drain
always drain before reboot
This commit is contained in:
+1
-3
@@ -377,9 +377,7 @@ func rebootAsRequired(nodeID string, window *timewindow.TimeWindow, TTL time.Dur
|
||||
continue
|
||||
}
|
||||
|
||||
if !nodeMeta.Unschedulable {
|
||||
drain(client, node)
|
||||
}
|
||||
drain(client, node)
|
||||
commandReboot(nodeID)
|
||||
for {
|
||||
log.Infof("Waiting for reboot")
|
||||
|
||||
Reference in New Issue
Block a user