pod

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

func RevertResourceBoost(pod *corev1.Pod) error

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

Jump to

Keyboard shortcuts

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