kubernetes: k8s.io/kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/scale Index | Files

package scale

import "k8s.io/kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/scale"


Package Files


func NewCmdScale Uses

func NewCmdScale(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdScale returns a cobra command with the appropriate configuration and flags to run scale

type ScaleOptions Uses

type ScaleOptions struct {
    FilenameOptions resource.FilenameOptions
    RecordFlags     *genericclioptions.RecordFlags
    PrintFlags      *genericclioptions.PrintFlags
    PrintObj        printers.ResourcePrinterFunc

    Selector        string
    All             bool
    Replicas        int
    ResourceVersion string
    CurrentReplicas int
    Timeout         time.Duration

    Recorder genericclioptions.Recorder

    // contains filtered or unexported fields

func NewScaleOptions Uses

func NewScaleOptions(ioStreams genericclioptions.IOStreams) *ScaleOptions

func (*ScaleOptions) Complete Uses

func (o *ScaleOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

func (*ScaleOptions) RunScale Uses

func (o *ScaleOptions) RunScale() error

RunScale executes the scaling

func (*ScaleOptions) Validate Uses

func (o *ScaleOptions) Validate(cmd *cobra.Command) error

Package scale imports 14 packages (graph). Updated 2020-12-10. Refresh now. Tools for package owners.