Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 8 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 GetAnnotationValue added in v1.3.0

func GetAnnotationValue(object client.Object, annotationName string) string

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