// NewCmdAutoscale is a wrapper for the Kubernetes cli autoscale command func NewCmdAutoscale(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command { cmd := kcmd.NewCmdAutoscale(f.Factory, out) cmd.Short = "Autoscale a deployment config or replication controller" cmd.Long = autoScaleLong cmd.Example = fmt.Sprintf(autoScaleExample, fullName) return cmd }
// NewCmdAutoscale is a wrapper for the Kubernetes cli autoscale command func NewCmdAutoscale(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command { cmd := kcmd.NewCmdAutoscale(f, out) cmd.Short = "Autoscale a deployment config, deployment, replication controller, or replica set" cmd.Long = autoScaleLong cmd.Example = fmt.Sprintf(autoScaleExample, fullName) cmd.ValidArgs = append(cmd.ValidArgs, "deploymentconfig") return cmd }