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

package autoscale

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

Index

Package Files

autoscale.go

func NewCmdAutoscale Uses

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

NewCmdAutoscale returns the autoscale Cobra command

type AutoscaleOptions Uses

type AutoscaleOptions struct {
    FilenameOptions *resource.FilenameOptions

    RecordFlags *genericclioptions.RecordFlags
    Recorder    genericclioptions.Recorder

    PrintFlags *genericclioptions.PrintFlags
    ToPrinter  func(string) (printers.ResourcePrinter, error)

    Name       string
    Generator  string
    Min        int32
    Max        int32
    CPUPercent int32

    HPAClient autoscalingv1client.HorizontalPodAutoscalersGetter

    genericclioptions.IOStreams
    // contains filtered or unexported fields
}

AutoscaleOptions declare the arguments accepted by the Autoscale command

func NewAutoscaleOptions Uses

func NewAutoscaleOptions(ioStreams genericclioptions.IOStreams) *AutoscaleOptions

NewAutoscaleOptions creates the options for autoscale

func (*AutoscaleOptions) Complete Uses

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

Complete verifies command line arguments and loads data from the command environment

func (*AutoscaleOptions) Run Uses

func (o *AutoscaleOptions) Run() error

Run performs the execution

func (*AutoscaleOptions) Validate Uses

func (o *AutoscaleOptions) Validate() error

Validate checks that the provided attach options are specified.

Package autoscale imports 17 packages (graph) and is imported by 10 packages. Updated 2019-07-19. Refresh now. Tools for package owners.