Documentation ¶
Index ¶
- Variables
- func AppendParent(ctx context.Context, child metav1.Object, parentId ezkube.ResourceId, ...)
- func FederatedObjectMeta(sourceObj ezkube.ClusterResourceId, ...) metav1.ObjectMeta
- func IsTranslated(object metav1.Object) bool
- func TranslatedObjectLabels() map[string]string
- func TranslatedObjectMeta(sourceObj ezkube.ClusterResourceId, annotations map[string]string) metav1.ObjectMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // the key used to differentiate translated resources by // the GlooMesh instance which produced them OwnershipLabelKey = fmt.Sprintf("owner.%s", v1.SchemeGroupVersion.Group) // the key used to differentiate translated resources by // the GlooMesh Agent instance which produced them AgentLabelKey = fmt.Sprintf("agent.%s", v1.SchemeGroupVersion.Group) // Annotation key indicating that the resource configures a federated Destination FederationLabelKey = fmt.Sprintf("federation.%s", v1.SchemeGroupVersion.Group) // Annotation key for tracking the parent resources that were translated in the creation of a child resource ParentLabelkey = fmt.Sprintf("parents.%s", v1.SchemeGroupVersion.Group) )
Functions ¶
func AppendParent ¶ added in v0.10.5
func AppendParent( ctx context.Context, child metav1.Object, parentId ezkube.ResourceId, parentGVK schema.GroupVersionKind, )
add a parent to the annotation for a given child object
func FederatedObjectMeta ¶
func FederatedObjectMeta( sourceObj ezkube.ClusterResourceId, meshInstallation *discoveryv1.MeshSpec_MeshInstallation, annotations map[string]string, ) metav1.ObjectMeta
construct an ObjectMeta for a resource for a federated source object meshInstallation represents the mesh instance to which the object will be output
func IsTranslated ¶ added in v0.11.1
Return true if the object is translated by Gloo Mesh
func TranslatedObjectLabels ¶
ownership label defaults to current namespace to allow multiple GlooMesh tenancy within a cluster.
func TranslatedObjectMeta ¶
func TranslatedObjectMeta(sourceObj ezkube.ClusterResourceId, annotations map[string]string) metav1.ObjectMeta
construct an ObjectMeta for a discovered resource from a source object (the object from which the resource was discovered)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.