pod

package
v0.11.0-devel Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLabelNotFound = errors.New("label not found")
	ErrInvalidUInt   = errors.New("invalid unsigned integer")
	ErrValidation    = errors.New("validation error")
)

Functions

func Gate

func Gate(pod *corev1.Pod, gateName string) bool

Gate adds scheduling gate from the Pod if present. Returns true if the pod has been updated and false otherwise.

func HasGate

func HasGate(pod *corev1.Pod, gateName string) bool

HasGate checks if the pod has a scheduling gate with a specified name.

func IgnoreLabelNotFoundError added in v0.10.0

func IgnoreLabelNotFoundError(err error) error

func ReadUIntFromLabel added in v0.10.0

func ReadUIntFromLabel(obj client.Object, labelKey string) (*int, error)

func ReadUIntFromLabelBelowBound added in v0.10.0

func ReadUIntFromLabelBelowBound(obj client.Object, labelKey string, bound int) (*int, error)

func Ungate

func Ungate(pod *corev1.Pod, gateName string) bool

Ungate removes scheduling gate from the Pod if present. Returns true if the pod has been updated and false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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