Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*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.
Source Files
¶
- idle.go
Click to show internal directories.
Click to hide internal directories.