Documentation ¶
Overview ¶
Package pod contains implementation of startup-cpu-boost POD manipulation functions
Index ¶
Constants ¶
View Source
const ( BoostLabelKey = "autoscaling.x-k8s.io/startup-cpu-boost" BoostAnnotationKey = "autoscaling.x-k8s.io/startup-cpu-boost" )
Variables ¶
This section is empty.
Functions ¶
func RevertResourceBoost ¶
Types ¶
type BoostPodAnnotation ¶
type BoostPodAnnotation struct { BoostTimestamp time.Time `json:"timestamp,omitempty"` InitCPURequests map[string]string `json:"initCPURequests,omitempty"` InitCPULimits map[string]string `json:"initCPULimits,omitempty"` }
func BoostAnnotationFromPod ¶
func BoostAnnotationFromPod(pod *corev1.Pod) (*BoostPodAnnotation, error)
func NewBoostAnnotation ¶
func NewBoostAnnotation() *BoostPodAnnotation
func (BoostPodAnnotation) ToJSON ¶
func (a BoostPodAnnotation) ToJSON() string
Click to show internal directories.
Click to hide internal directories.