diff --git a/clustergroup/templates/plumbing/applications.yaml b/clustergroup/templates/plumbing/applications.yaml index 0b9f4eda..74a47cdf 100644 --- a/clustergroup/templates/plumbing/applications.yaml +++ b/clustergroup/templates/plumbing/applications.yaml @@ -127,6 +127,10 @@ metadata: namespace: {{ $namespace }} labels: validatedpatterns.io/pattern: {{ $.Values.global.pattern }} + {{- if .syncWave }} + annotations: + argocd.argoproj.io/sync-wave: {{ .syncWave }} + {{- end }} finalizers: - resources-finalizer.argocd.argoproj.io/foreground spec: diff --git a/clustergroup/values.schema.json b/clustergroup/values.schema.json index a1449ff3..5105ee6f 100644 --- a/clustergroup/values.schema.json +++ b/clustergroup/values.schema.json @@ -221,6 +221,10 @@ "type": "boolean", "deprecated": true }, + "syncWave": { + "type": "integer", + "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." + }, "syncPolicy": { "type": "string", "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."