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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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