common

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 12 Imported by: ? 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

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