Merge pull request #99396 from yuzhiquan/remove-deprecated-message

Remove --ignore-errors flag deprecated warning message
This commit is contained in:
Kubernetes Prow Robot 2021-03-09 17:39:13 -08:00 committed by GitHub
commit 832e41d176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,9 +307,6 @@ func (o *DrainCmdOptions) RunDrain() error {
fmt.Fprintf(o.ErrOut, "error: unable to drain node %q due to error:%s, continuing command...\n", info.Name, err)
continue
}
fmt.Fprintf(o.ErrOut, "DEPRECATED WARNING: Aborting the drain command in a list of nodes will be deprecated.\n"+
"The new behavior will make the drain command go through all nodes even if one or more nodes failed during the drain.\n"+
"For now, users can try such experience via: --ignore-errors\n")
fmt.Fprintf(o.ErrOut, "error: unable to drain node %q, aborting command...\n\n", info.Name)
remainingNodes := []string{}
fatal = err