Documentation ¶
Index ¶
- Variables
- func ApplyAnnotations(fromAnnotations map[string]string, toAnnotations map[string]string, ...) map[string]string
- func ApplyLabels(fromLabels map[string]string, toLabels map[string]string, ...) (labels map[string]string, annotations map[string]string)
- func ApplyMaps(fromMap map[string]string, toMap map[string]string, opts ApplyMapsOptions) (map[string]string, string)
- func ApplyMetadata(fromAnnotations map[string]string, toAnnotations map[string]string, ...) (labels map[string]string, annotations map[string]string)
- func Exists(a []string, k string) bool
- func GetOwnerReference(object client.Object) []metav1.OwnerReference
- func IsManaged(obj runtime.Object) bool
- func IsManagedCluster(physicalNamespace string, obj runtime.Object) bool
- func ObjectPhysicalName(obj client.Object) string
- func PhysicalName(name, namespace string) string
- func PhysicalNameClusterScoped(name, physicalNamespace string) string
- func SafeConcatGenerateName(name ...string) string
- func SafeConcatName(name ...string) string
- type ApplyMapsOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NamespaceLabel = "vcluster.loft.sh/namespace" MarkerLabel = "vcluster.loft.sh/managed-by" ControllerLabel = "vcluster.loft.sh/controlled-by" Suffix = "suffix" ManagedAnnotationsAnnotation = "vcluster.loft.sh/managed-annotations" ManagedLabelsAnnotation = "vcluster.loft.sh/managed-labels" )
View Source
var Owner client.Object
Functions ¶
func ApplyAnnotations ¶ added in v0.9.0
func ApplyLabels ¶ added in v0.9.0
func ApplyMetadata ¶ added in v0.9.0
func GetOwnerReference ¶ added in v0.4.4
func GetOwnerReference(object client.Object) []metav1.OwnerReference
func IsManagedCluster ¶ added in v0.4.0
func ObjectPhysicalName ¶
func PhysicalName ¶
PhysicalName returns the physical name of the name / namespace resource
func PhysicalNameClusterScoped ¶ added in v0.4.0
PhysicalNameClusterScoped returns the physical name of a cluster scoped object in the host cluster
func SafeConcatGenerateName ¶ added in v0.3.0
func SafeConcatName ¶
Types ¶
type ApplyMapsOptions ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.