Skip to content

Commit

Permalink
fix minor wording issues (eksctl-io#2697)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayk authored Oct 2, 2020
1 parent 5071675 commit 00df240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ctl/drain/nodegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ func drainNodeGroupWithRunFunc(cmd *cmdutils.Cmd, runFunc func(cmd *cmdutils.Cmd
cmd.FlagSetGroup.InFlagSet("General", func(fs *pflag.FlagSet) {
fs.StringVar(&cfg.Metadata.Name, "cluster", "", "EKS cluster name")
cmdutils.AddRegionFlag(fs, &cmd.ProviderConfig)
fs.StringVarP(&ng.Name, "name", "n", "", "Name of the nodegroup to delete")
fs.StringVarP(&ng.Name, "name", "n", "", "Name of the nodegroup to drain")
cmdutils.AddConfigFileFlag(fs, &cmd.ClusterConfigFile)
cmdutils.AddApproveFlag(fs, cmd)
cmdutils.AddNodeGroupFilterFlags(fs, &cmd.Include, &cmd.Exclude)
fs.BoolVar(&onlyMissing, "only-missing", false, "Only drain nodegroups that are not defined in the given config file")
fs.BoolVar(&undo, "undo", false, "Uncordone the nodegroup")
fs.BoolVar(&undo, "undo", false, "Uncordon the nodegroup")
defaultMaxGracePeriod, _ := time.ParseDuration("10m")
fs.DurationVar(&maxGracePeriod, "max-grace-period", defaultMaxGracePeriod, "Maximum pods termination grace period")
cmdutils.AddTimeoutFlag(fs, &cmd.ProviderConfig.WaitTimeout)
Expand Down

0 comments on commit 00df240

Please sign in to comment.