You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Glue` is the heart of the operator. Note that `GlueOperator` controller just creates a new `Glue` with a related resource,
@@ -57,6 +61,9 @@ The following attributes can be defined for a related resource:
57
61
-**`apiVersion`** - Kubernetes resource API Version of the resource
58
62
-**`kind`** - Kubernetes kind property of the resource
59
63
-**`resourceNames`** - list of string of the resource names within the same namespace as `Glue`.
64
+
-**`statusPatch`** - template object used to update status of the related resource at the end of the reconciliation. See [sample](https://github.com/java-operator-sdk/kubernetes-glue-operator/blob/main/src/test/resources/glue/PatchRelatedStatus.yaml#L20-L21).
65
+
All the available resources (child, related) are provided.
66
+
-**`statusPatchTemplate`** - same as `statusPatch` just as a string template. See [sample](https://github.com/java-operator-sdk/kubernetes-glue-operator/blob/main/src/test/resources/glue/PatchRelatedStatusWithTemplate.yaml#L20-L21).
60
67
61
68
### Referencing other resources
62
69
@@ -91,6 +98,9 @@ The specs of `GlueOperator` are almost identical to `Glue`, it just adds some ad
91
98
-**`apiVersion`** and **`kind`** - of the target custom resources.
92
99
-**`labelSelector`** - optional label selector for the target resources.
93
100
-**`clusterScoped`** - optional boolean value, if the parent resource is cluster scoped. Default is `false`.
101
+
-**`status`** - template object to update status of the related resource at the end of the reconciliation.
102
+
All the available resources (parent, child, related) are available.
103
+
-**`statusTemplate`** - same as `status` just as a string template.
94
104
-**`glueMetadata`** - optionally, you can customize the `Glue` resource created for each parent resource.
95
105
This is especially important when the parent is a cluster scoped resource - in that case it is mandatory to set.
96
106
Using this you can specify the **`name`** and **`namespace`** of the created `Glue`.
0 commit comments