Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToUnstructured ¶
func BytesToUnstructured(b []byte) ([]*unstructured.Unstructured, error)
BytesToUnstructured converts a slice of Bytes to Unstructured objects. This function is useful when you want to read a yaml manifest and covert it to Kubernetes objects.
func IsUpgradeFromLastReleasedGA ¶
IsUpgradeFromLastReleasedGA checks if the given version is an upgrade from the last released GA. TODO: remove as soon as we have version aware upgrade logic for the pre-upgrade validation.
func UnstructuredToBytes ¶
func UnstructuredToBytes(objs []*unstructured.Unstructured) ([]byte, error)
UnstructuredToBytes converts a list of Unstructured objects to YAML.
func ValidateDPFVersion ¶
ValidateDPFVersion checks if the provided version is compatible with the installed DPF version. It allows upgrades from the same major.minor version (including pre-releases) and from specific allowed versions.
Types ¶
This section is empty.