Skip to content

Commit

Permalink
Merge pull request kubereboot#294 from jackfrancis/always-drain
Browse files Browse the repository at this point in the history
always drain before reboot
  • Loading branch information
Daniel Holbach authored Mar 9, 2021
2 parents 1fd09dd + 93c8242 commit 32e01a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/kured/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 32e01a8

Please sign in to comment.