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-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ Within the framework, we support resource hooks in three ways:
46
46
3. Exposing a new top-level clusterGroup object, extraObjects, that allows users full control of creating their own
47
47
resource hooks.
48
48
49
-
These features are available in version 0.9.8 and later of the Validated Patterns clustergroup chart.
49
+
These features are available in version 0.9.9 and later of the Validated Patterns clustergroup chart.
50
50
51
51
== Race Conditions: The Problem
52
52
@@ -81,11 +81,11 @@ 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
-
== Solution 1: Sync-Waves for Subscriptions in clusterGroup
84
+
== Solution 1: Sync-Waves for Subscriptions (and/or Applications) in clusterGroup
85
85
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
87
-
for Resource Hooks. The clustergoup chart now passes any annotations attached to subscriptions through to the
88
-
subscription object(s) that the clustergroup chart creates. For example:
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 and application objects in the clusterGroup.
87
+
ArgoCD uses annotations for Resource Hooks. The clustergoup chart now passes any annotations attached to subscriptions
88
+
through to the subscription object(s) that the clustergroup chart creates. For example:
89
89
90
90
[source,yaml]
91
91
----
@@ -150,6 +150,9 @@ In the case of this particular issue, it was not enough. But because all sequenc
150
150
sync-wave annotations, adding the annotation to the subscription object will be necessary for using the other
151
151
solutions.
152
152
153
+
The sequencing of applications would work the same way, with the same format for adding annotations to the application
154
+
stanzas in the clustergroup.
155
+
153
156
== Solution 2: The `sequenceJob` attribute for Subscriptions in clusterGroup
154
157
155
158
In this situation, we have a subscription that installs an operator, but it is not enough for just the subscriptions
0 commit comments