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

package scale

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

Index

Package Files

scale.go

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

    genericclioptions.IOStreams
    // 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) and is imported by 10 packages. Updated 2019-07-08. Refresh now. Tools for package owners.