Fix drain command for rolling-updates

This commit is contained in:
Kashif Saadat 2018-02-05 16:30:45 +00:00
parent 985bac8d1c
commit 670f8e6b19
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 {