cmd.Flags().BoolVar(&options.DeleteLocalData,"delete-local-data",false,"Continue even if there are pods using emptyDir (local data that will be deleted when the node is drained).")
cmd.Flags().BoolVar(&options.DeleteLocalData,"delete-local-data",false,"Continue even if there are pods using emptyDir (local data that will be deleted when the node is drained).")
cmd.Flags().IntVar(&options.GracePeriodSeconds,"grace-period",-1,"Period of time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used.")
cmd.Flags().IntVar(&options.GracePeriodSeconds,"grace-period",-1,"Period of time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used.")
cmd.Flags().DurationVar(&options.Timeout,"timeout",0,"The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object")
cmd.Flags().DurationVar(&options.Timeout,"timeout",0,"The length of time to wait before giving up, zero means infinite")
returncmd
returncmd
}
}
...
@@ -238,16 +238,6 @@ func (o *DrainOptions) RunDrain() error {
...
@@ -238,16 +238,6 @@ func (o *DrainOptions) RunDrain() error {
}
}
err:=o.deleteOrEvictPodsSimple()
err:=o.deleteOrEvictPodsSimple()
// TODO: update IsTooManyRequests() when the TooManyRequests(429) error returned from the API server has a non-empty Reason field