Skip to content

Commit

Permalink
Optionally allow for applications to be rolled out in an ordered fashion
Browse files Browse the repository at this point in the history
  • Loading branch information
beekhof committed Jul 19, 2024
1 parent 912b510 commit bd28fb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clustergroup/templates/plumbing/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions clustergroup/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit bd28fb4

Please sign in to comment.