Last active
May 16, 2019 15:26
-
-
Save dblooman/79f61335ab4ff45ea7e92835f3d64651 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
err = drain.Drain(clientset, []*corev1.Node{node}, &drain.DrainOptions{ | |
IgnoreDaemonsets: true, | |
DeleteLocalData: true, | |
GracePeriodSeconds: -1, | |
Force: true, | |
Logger: ilog.New(), | |
// Timeout of 0 means infinite. The draining is pretty quick, so I expect it to complete within | |
// the execution duration of the lambda. | |
Timeout: 0, | |
}) | |
if err != nil { | |
panic(err) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment