Skip to content

Commit

Permalink
Add log message when draining unreachable node
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Demichev committed Feb 6, 2020
1 parent 8b94fd7 commit b2b1b3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/machine/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ func (r *ReconcileMachine) drainNode(machine *machinev1.Machine) error {
}

if nodeIsUnreachable(node) {
klog.Infof("%q: Node %q is unreachable, draining will wait %q seconds after pod is signalled for deletion and skip after it", machine.Name, node.Name, skipWaitForDeleteTimeoutSeconds)
drainer.SkipWaitForDeleteTimeoutSeconds = skipWaitForDeleteTimeoutSeconds
}

Expand Down

0 comments on commit b2b1b3a

Please sign in to comment.