common

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagerName                     = "workload-cluster-operator.sylva-project.org"
	ManagerSWCNameLabel             = ManagerName + "/cluster-name"
	ManagerSWCNamespaceLabel        = ManagerName + "/cluster-namespace"
	WorkloadClusterSpecificLabelKey = "sylva-project.org/workload-cluster"
	PreviewSWCAnnotationKey         = ManagerName + "/preview"
	ManagerSWCRevisionAnnotation    = ManagerName + "/value-from-revision"
)

Variables

View Source
var (
	WorkloadClusterSpecificLabel = map[string]string{WorkloadClusterSpecificLabelKey: ""}
)

Functions

func GetAllLabels added in v0.8.0

func GetAllLabels(swc *swcv1alpha1.SylvaWorkloadCluster) map[string]string

func GetDataFromValuesFromItem

func GetDataFromValuesFromItem(vf sylvav1alpha1.ValuesFrom, source client.Object) (string, error)

func GetManagerLabels

func GetManagerLabels(swc *swcv1alpha1.SylvaWorkloadCluster) map[string]string

func HashObject

func HashObject(obj any) string

func ValidateFreeFormValues added in v0.14.6

func ValidateFreeFormValues(jsonData apiextensionsv1.JSON) (map[string]any, error)

validateFreeFormValues ensures that the values do not contain any invalid patterns. It returns an empty map if the JSON data is empty.

func ValidateString

func ValidateString(in string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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