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
Copy file name to clipboardExpand all lines: content/blog/2024-11-07-clustergroup-sequencing.adoc
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,8 +81,6 @@ apply resources in. The mechanism is described in the ArgoCD upstream docs https
81
81
resources in the numerically next sync-wave are synced. This mechanism gives us a way of having ArgocD help us enforce
82
82
order with objects that it manages.
83
83
84
-
We can now add sync-waves to Kubernetes manifests in annotations.
85
-
86
84
== Solution 1: Sync-Waves for Subscriptions in clusterGroup
87
85
88
86
The Validated Patterns framework now allows Kubernetes https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/[annotations] to be added directly to subscription objects in the clusterGroup. ArgoCD uses annotations
@@ -272,14 +270,14 @@ to "see" and use that storageclass as its default virtualization storage class.
272
270
273
271
Each subscription is permitted one sequenceJob. Each sequenceJob may have the following attributes:
274
272
275
-
* syncWave: Defaults to the subscription's syncwave from annotations.
276
-
* resourceType: Resource kind for the resource to watch for.
277
-
* resourceName: Name of the resource to watch for.
278
-
* resourceNamespace: Namespace to watch for the resourceType and resourceName in.
279
-
* hookType: Any of the permissible ArgoCD Resource Hook types. Defaults to "Sync".
280
-
* image: Image of the container to use for the job. Defaults to the Validated Patterns imperative image.
281
-
* command: Command to run inside the container, if the default is not suitable. This also enables you to specify multiple resources to watch for in the same job, or to look for a different condition altogether.
282
-
* disabled: Set this to true in an override if you wish to disable the sequenceJob for some reason (such as running on
273
+
* *syncWave*: Defaults to the subscription's syncwave from annotations.
274
+
* *resourceType*: Resource kind for the resource to watch for.
275
+
* *resourceName*: Name of the resource to watch for.
276
+
* *resourceNamespace*: Namespace to watch for the resourceType and resourceName in.
277
+
* *hookType*: Any of the permissible ArgoCD Resource Hook types. Defaults to "Sync".
278
+
* *image*: Image of the container to use for the job. Defaults to the Validated Patterns imperative image.
279
+
* *command*: Command to run inside the container, if the default is not suitable. This also enables you to specify multiple resources to watch for in the same job, or to look for a different condition altogether.
280
+
* *disabled*: Set this to true in an override if you wish to disable the sequenceJob for some reason (such as running on
283
281
a different version of OpenShift or running on a different cloud platform).
284
282
285
283
If the sequenceJob is not sufficient for your sequencing needs, we have a more generic interface that you can use
0 commit comments