common

package
v1.2.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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagerLabel = "sylva-units-operator.sylva-project.org/sylva-units-release"
)

Variables

This section is empty.

Functions

func GetManagerLabels

func GetManagerLabels(suRelease *surv1alpha1.SylvaUnitsRelease) map[string]string

func HashObject

func HashObject(obj interface{}) string

func InsertYamlAtPath

func InsertYamlAtPath(path string, in string) (string, error)

InsertYamlAtPath creates a tree at the specified path in the YAML string. It decodes the YAML string into a map, inserts it at the specified path, and converts the map back to a YAML string. Note: JSON is a valid YAML, so we can use the same function for marshaled JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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