mirror of https://github.com/kubernetes/kops.git
Fix drain command for rolling-updates
This commit is contained in:
parent
985bac8d1c
commit
670f8e6b19
|
@ -24,7 +24,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/spf13/cobra"
|
|
||||||
api "k8s.io/kops/pkg/apis/kops"
|
api "k8s.io/kops/pkg/apis/kops"
|
||||||
"k8s.io/kops/pkg/cloudinstances"
|
"k8s.io/kops/pkg/cloudinstances"
|
||||||
"k8s.io/kops/pkg/featureflag"
|
"k8s.io/kops/pkg/featureflag"
|
||||||
|
@ -313,9 +312,7 @@ func (r *RollingUpdateInstanceGroup) DrainNode(u *cloudinstances.CloudInstanceGr
|
||||||
ErrOut: errOut,
|
ErrOut: errOut,
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := &cobra.Command{
|
cmd := cmd.NewCmdDrain(f, out, errOut)
|
||||||
Use: "cordon NODE",
|
|
||||||
}
|
|
||||||
args := []string{u.Node.Name}
|
args := []string{u.Node.Name}
|
||||||
err := options.SetupDrain(cmd, args)
|
err := options.SetupDrain(cmd, args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue