idle

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 31 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdIdle

func NewCmdIdle(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdIdle implements the OpenShift cli idle command

Types

type IdleOptions

type IdleOptions struct {
	ClientForMappingFn func(*meta.RESTMapping) (resource.RESTClient, error)
	ClientConfig       *rest.Config
	ClientSet          kubernetes.Interface
	AppClient          appsclient.Interface
	OperatorClient     operatorclient.Interface
	ScaleClient        scale.ScalesGetter
	Mapper             meta.RESTMapper

	Builder   func() *resource.Builder
	Namespace string

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func NewIdleOptions

func NewIdleOptions(name string, streams genericclioptions.IOStreams) *IdleOptions

func (*IdleOptions) Complete

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

func (*IdleOptions) RunIdle

func (o *IdleOptions) RunIdle() error

RunIdle runs the idling command logic, taking a list of resources or services in a file, scaling the associated scalable resources to zero, and annotating the associated endpoints objects with the scalable resources to unidle when they receive traffic.

Jump to

Keyboard shortcuts

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