Skip to content

Commit

Permalink
Merge pull request #97800 from pandaamanda/kubectl_autoscale_completion
Browse files Browse the repository at this point in the history
Fix statefulset absent of kubectl autoscale bash completions
  • Loading branch information
k8s-ci-robot committed Jan 19, 2021
2 parents 3fedfb8 + 0c74749 commit 13d40ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions staging/src/k8s.io/kubectl/pkg/cmd/autoscale/autoscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ func NewAutoscaleOptions(ioStreams genericclioptions.IOStreams) *AutoscaleOption
func NewCmdAutoscale(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
o := NewAutoscaleOptions(ioStreams)

validArgs := []string{"deployment", "replicaset", "replicationcontroller"}
validArgs := []string{"deployment", "replicaset", "replicationcontroller", "statefulset"}

cmd := &cobra.Command{
Use: "autoscale (-f FILENAME | TYPE NAME | TYPE/NAME) [--min=MINPODS] --max=MAXPODS [--cpu-percent=CPU]",
DisableFlagsInUseLine: true,
Short: i18n.T("Auto-scale a Deployment, ReplicaSet, or ReplicationController"),
Short: i18n.T("Auto-scale a Deployment, ReplicaSet, StatefulSet, or ReplicationController"),
Long: autoscaleLong,
Example: autoscaleExample,
Run: func(cmd *cobra.Command, args []string) {
Expand Down

0 comments on commit 13d40ac

Please sign in to comment.