Skip to content

Commit bd28fb4

Browse files
committed
Optionally allow for applications to be rolled out in an ordered fashion
1 parent 912b510 commit bd28fb4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

clustergroup/templates/plumbing/applications.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ metadata:
127127
namespace: {{ $namespace }}
128128
labels:
129129
validatedpatterns.io/pattern: {{ $.Values.global.pattern }}
130+
{{- if .syncWave }}
131+
annotations:
132+
argocd.argoproj.io/sync-wave: {{ .syncWave }}
133+
{{- end }}
130134
finalizers:
131135
- resources-finalizer.argocd.argoproj.io/foreground
132136
spec:

clustergroup/values.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@
221221
"type": "boolean",
222222
"deprecated": true
223223
},
224+
"syncWave": {
225+
"type": "integer",
226+
"description": "This controls the order in which ArgoCD applications are created. Appplications in subsequent waves will not be created until previous applications have synchronized and become healthy."
227+
},
224228
"syncPolicy": {
225229
"type": "string",
226230
"description": "This is the sync policy for the ArgoCD applications. When set to Automatic ArgoCD will automatically sync an application when it detects differences between the desired manifests in Git."

0 commit comments

Comments
 (0)