Merge pull request #4387 from appvia/fix-draincmd

Fix drain command for rolling-updates
This commit is contained in:
k8s-ci-robot 2018-02-05 09:44:08 -08:00 committed by GitHub
commit 2c79be3bf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -24,7 +24,6 @@ import (
"time"
"github.com/golang/glog"
"github.com/spf13/cobra"
api "k8s.io/kops/pkg/apis/kops"
"k8s.io/kops/pkg/cloudinstances"
"k8s.io/kops/pkg/featureflag"
@ -313,9 +312,7 @@ func (r *RollingUpdateInstanceGroup) DrainNode(u *cloudinstances.CloudInstanceGr
ErrOut: errOut,
}
cmd := &cobra.Command{
Use: "cordon NODE",
}
cmd := cmd.NewCmdDrain(f, out, errOut)
args := []string{u.Node.Name}
err := options.SetupDrain(cmd, args)
if err != nil {