Documentation
¶
Index ¶
Constants ¶
const ClusterNamespaceAnnotationKey = "kube-bind.io/cluster-namespace"
ClusterNamespaceAnnotationKey is the annotation key to identify the cluster namespace that any synced object on the provider side belongs to. This annotation is set on all synced objects, regardless of scope or isolation mode.
const ConsumerNamespaceAnnotationKey = "kube-bind.io/consumer-namespace"
ConsumerNamespaceAnnotationKey is the annotation key set on provider-side objects to identify the consumer namespace the source object lives in.
const ConsumerUIDAnnotationKey = "kube-bind.io/consumer-uid"
ConsumerUIDAnnotationKey is the annotation key set on provider-side objects to uniquely identify the consumer source object.
const ProviderNamespaceAnnotationKey = "kube-bind.io/provider-namespace"
ProviderNamespaceAnnotationKey is the annotation key set on consumer-side objects to identify the provider namespace the source object lives in.
const ProviderUIDAnnotationKey = "kube-bind.io/provider-uid"
ProviderUIDAnnotationKey is the annotation key set on consumer-side objects to uniquely identify the provider source object.
Variables ¶
This section is empty.
Functions ¶
func SetSourceMetadataAnnotations ¶ added in v0.8.0
func SetSourceMetadataAnnotations(obj *unstructured.Unstructured, sourceNS, sourceUID, nsKey, uidKey string)
SetSourceMetadataAnnotations sets source metadata annotations on a synced object so the receiving side can trace where the object came from.
Types ¶
This section is empty.