From b5ead8eb49b51fe8cdce570787dfa12cb9693b7d Mon Sep 17 00:00:00 2001 From: xiongzhongliang Date: Fri, 8 Jan 2021 03:40:55 +0800 Subject: [PATCH] Add statefulset to kubectl autoscale bash completions Add statefulset to kubectl autoscale bash completions Kubernetes-commit: 0c74749ec9f2e8ca5ae4710f1d16831998d55625 --- pkg/cmd/autoscale/autoscale.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/autoscale/autoscale.go b/pkg/cmd/autoscale/autoscale.go index ecec0955..27475d5c 100644 --- a/pkg/cmd/autoscale/autoscale.go +++ b/pkg/cmd/autoscale/autoscale.go @@ -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) {