validation

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertConditionsToString

func ConvertConditionsToString(condition metav1.Condition) string

func ValidateConditionsTrue

func ValidateConditionsTrue(unstrObj *unstructured.Unstructured, includeTypes ...string) error

ValidateConditionsTrue iterates over the conditions of the given unstructured object and returns an error if any of the conditions are not true. Conditions are expected to be of type metav1.Condition.

If includeTypes argument is set, then validation includes only the given, otherwise all of the available conditions are up to be tested against Status == True.

func ValidateObjectNamePrefix

func ValidateObjectNamePrefix(obj *unstructured.Unstructured, prefix string) error

ValidateObjectNamePrefix checks if the given object name has the given prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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