Documentation
¶
Index ¶
- func AddFinalizer(obj client.Object, finalizer string) bool
- func FindCondition(conditions []metav1.Condition, conditionType string) *metav1.Condition
- func GenerateRandomString(length int) string
- func IsConditionTrue(conditions []metav1.Condition, conditionType string) bool
- func IsPodReady(pod *corev1.Pod) bool
- func RemoveFinalizer(obj client.Object, finalizer string) bool
- func SetCondition(conditions *[]metav1.Condition, conditionType string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizer ¶
AddFinalizer adds a finalizer to an object if it doesn't already exist
func FindCondition ¶
FindCondition finds a condition by type in the provided slice
func GenerateRandomString ¶
func IsConditionTrue ¶
IsConditionTrue checks if a condition with the given type exists and has status True
func RemoveFinalizer ¶
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.
Click to show internal directories.
Click to hide internal directories.