core

package
v0.0.0-...-6b2d771 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VPAInitializerConfigName is a unique name of the VPA initializer config,
	// used to register the initializer with apiserver.
	VPAInitializerConfigName = "vpa-initializer-config.k8s.io"
	// VPAInitializerName is a unique name of VPA initializer, used to mark
	// pods that need to be initialized by VPA initializer.
	VPAInitializerName = "vpa-initializer.k8s.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Initializer

type Initializer interface {
	// Run runs the initializer by syncing caches and registering with the API server
	Run(stopCh <-chan struct{})
}

Initializer initializes all uninitialized pods matched by an existing VPA object. Takes resource recommendations from recommender or recommendations cached in VPA object if recommender is unavailable and applies them to containers in the pod. On startup initializers registers itself with API Server by creating a VPA initializer configuration.

func NewInitializer

func NewInitializer(kubeClient kubeclient.Interface, cacheTtl time.Duration) Initializer

NewInitializer returns a VPA initializer.

Jump to

Keyboard shortcuts

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