common

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(obj client.Object, finalizer string) bool

AddFinalizer adds a finalizer to an object if it doesn't already exist

func FindCondition

func FindCondition(conditions []metav1.Condition, conditionType string) *metav1.Condition

FindCondition finds a condition by type in the provided slice

func GenerateRandomString

func GenerateRandomString(length int) string

func IsConditionTrue

func IsConditionTrue(conditions []metav1.Condition, conditionType string) bool

IsConditionTrue checks if a condition with the given type exists and has status True

func IsPodReady

func IsPodReady(pod *corev1.Pod) bool

IsPodReady checks if a pod is ready

func RemoveFinalizer

func RemoveFinalizer(obj client.Object, finalizer string) bool

RemoveFinalizer removes a finalizer from an object if it exists

func SetCondition

func SetCondition(conditions *[]metav1.Condition, conditionType string, status metav1.ConditionStatus, reason, message string)

SetCondition updates or creates a condition in the provided slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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