utils

package
v0.1.0-latest-stable Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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

func IsUpgradeFromLastReleasedGA(version string) bool

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

func ValidateDPFVersion(prevVersionStr *string) error

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.

Jump to

Keyboard shortcuts

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