Documentation ¶
Index ¶
Constants ¶
View Source
const ( DaemonSetStr string = "DaemonSet" StatefulSetStr string = "StatefulSet" DeploymentStr string = "Deployment" MainContainerAnnotationKey string = "vpa-butler.cloud.sap/main-container" UpdateModeAnnotationKey string = "vpa-butler.cloud.sap/update-mode" ControlledValuesAnnotationKey string = "vpa-butler.cloud.sap/controlled-values" )
Variables ¶
This section is empty.
Functions ¶
func SetupForAppsV1 ¶
Types ¶
type GenericController ¶
type GenericController struct { client.Client Log logr.Logger Scheme *runtime.Scheme // contains filtered or unexported fields }
func (*GenericController) SetupWithManager ¶
type VpaController ¶
type VpaController struct { client.Client Log logr.Logger Scheme *runtime.Scheme MinAllowedCPU resource.Quantity MinAllowedMemory resource.Quantity Version string }
func (*VpaController) SetupWithManager ¶
func (v *VpaController) SetupWithManager(mgr ctrl.Manager) error
type VpaRunnable ¶
type VpaRunnable struct { client.Client Period time.Duration JitterFactor float64 CapacityPercent int64 Log logr.Logger }
VpaRunnable is responsible for setting the maximum allowed resources of a served Vpa. As all served Vpas have to evaluated against all nodes we fetch the Vpas, their target and the nodes only once.
Click to show internal directories.
Click to hide internal directories.