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.
Click to show internal directories.
Click to hide internal directories.