autoscale

package
v0.29.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAutoscale

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

NewCmdAutoscale returns the autoscale Cobra command

Types

type AutoscaleOptions

type AutoscaleOptions struct {
	FilenameOptions *resource.FilenameOptions

	RecordFlags *genericclioptions.RecordFlags
	Recorder    genericclioptions.Recorder

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

	Name       string
	Min        int32
	Max        int32
	CPUPercent int32

	HPAClient autoscalingv1client.HorizontalPodAutoscalersGetter

	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

AutoscaleOptions declares the arguments accepted by the Autoscale command

func NewAutoscaleOptions

func NewAutoscaleOptions(ioStreams genericiooptions.IOStreams) *AutoscaleOptions

NewAutoscaleOptions creates the options for autoscale

func (*AutoscaleOptions) Complete

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

func (o *AutoscaleOptions) Run() error

Run performs the execution

func (*AutoscaleOptions) Validate

func (o *AutoscaleOptions) Validate() error

Validate checks that the provided attach options are specified.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL