Merge pull request #294 from jackfrancis/always-drain

always drain before reboot
This commit is contained in:
Daniel Holbach
2021-03-09 10:13:36 +01:00
committed by GitHub
+1 -3
View File
@@ -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")