From 01d0d15562ccb7377176f72fb70a3cf18d0d7666 Mon Sep 17 00:00:00 2001 From: yuzhiquan Date: Wed, 24 Feb 2021 19:02:24 +0800 Subject: [PATCH] remove --ignore-errors flag deprecated warning message --- staging/src/k8s.io/kubectl/pkg/cmd/drain/drain.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/drain/drain.go b/staging/src/k8s.io/kubectl/pkg/cmd/drain/drain.go index d6657b83a49..c1d512fb7fa 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/drain/drain.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/drain/drain.go @@ -311,9 +311,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