Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdScale

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

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

    Types

    type ScaleOptions

    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
    
    	genericclioptions.IOStreams
    	// contains filtered or unexported fields
    }

    func NewScaleOptions

    func NewScaleOptions(ioStreams genericclioptions.IOStreams) *ScaleOptions

    func (*ScaleOptions) Complete

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

    func (*ScaleOptions) RunScale

    func (o *ScaleOptions) RunScale() error

      RunScale executes the scaling

      func (*ScaleOptions) Validate

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

      Source Files