diff --git a/apps/templates/filebrowser.yaml b/apps/templates/filebrowser.yaml index e7596d57..92ccec0c 100644 --- a/apps/templates/filebrowser.yaml +++ b/apps/templates/filebrowser.yaml @@ -4,6 +4,8 @@ kind: Application metadata: name: {{ .Values.argocd.project }}-filebrowser namespace: {{ .Values.argocd.namespace }} + annotations: + argocd.argoproj.io/sync-wave: "2" finalizers: - resources-finalizer.argocd.argoproj.io spec: diff --git a/apps/templates/saleor.yaml b/apps/templates/saleor.yaml index 57ac3946..507f5d7e 100644 --- a/apps/templates/saleor.yaml +++ b/apps/templates/saleor.yaml @@ -4,6 +4,8 @@ kind: Application metadata: name: {{ .Values.argocd.project }}-saleor namespace: {{ .Values.argocd.namespace }} + annotations: + argocd.argoproj.io/sync-wave: "2" finalizers: - resources-finalizer.argocd.argoproj.io spec: diff --git a/bootstrap/app/templates/apps.yaml b/bootstrap/app/templates/apps.yaml index 76691296..c750249a 100644 --- a/bootstrap/app/templates/apps.yaml +++ b/bootstrap/app/templates/apps.yaml @@ -4,6 +4,8 @@ kind: AppProject metadata: name: apps namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" spec: description: apps project clusterResourceWhitelist: diff --git a/bootstrap/app/templates/global.yaml b/bootstrap/app/templates/global.yaml index 9ca49b86..b663c7ed 100644 --- a/bootstrap/app/templates/global.yaml +++ b/bootstrap/app/templates/global.yaml @@ -20,6 +20,8 @@ kind: Application metadata: name: global namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" finalizers: - resources-finalizer.argocd.argoproj.io spec: @@ -49,4 +51,4 @@ spec: global: domain: {{ .Values.global.domain }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/bootstrap/app/templates/platform.yaml b/bootstrap/app/templates/platform.yaml index 9c2da14c..bf572423 100644 --- a/bootstrap/app/templates/platform.yaml +++ b/bootstrap/app/templates/platform.yaml @@ -4,6 +4,8 @@ kind: AppProject metadata: name: platform namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" spec: description: platform project clusterResourceWhitelist: diff --git a/bootstrap/app/templates/system.yaml b/bootstrap/app/templates/system.yaml index c7b777bb..9c9f477c 100644 --- a/bootstrap/app/templates/system.yaml +++ b/bootstrap/app/templates/system.yaml @@ -20,6 +20,8 @@ kind: Application metadata: name: system namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" finalizers: - resources-finalizer.argocd.argoproj.io spec: @@ -49,4 +51,4 @@ spec: global: domain: {{ .Values.global.domain }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/system/templates/dashboard.yaml b/system/templates/dashboard.yaml index af21698d..8b922242 100644 --- a/system/templates/dashboard.yaml +++ b/system/templates/dashboard.yaml @@ -4,6 +4,8 @@ kind: Application metadata: name: {{ .Values.argocd.project }}-dashboard namespace: {{ .Values.argocd.namespace }} + annotations: + argocd.argoproj.io/sync-wave: "1" finalizers: - resources-finalizer.argocd.argoproj.io spec: @@ -21,4 +23,4 @@ spec: repoURL: 'https://github.com/locmai/humble-grafana-dashboards.git' path: ./ targetRevision: {{ .Values.dashboard.targetRevision }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/system/templates/grafana-ingress.yaml b/system/templates/grafana-ingress.yaml index 2fc8f6db..f419906f 100644 --- a/system/templates/grafana-ingress.yaml +++ b/system/templates/grafana-ingress.yaml @@ -4,6 +4,7 @@ metadata: name: monitoring-grafana namespace: {{ .Values.monitoring.namespace }} annotations: + argocd.argoproj.io/sync-wave: "2" cert-manager.io/cluster-issuer: "letsencrypt-prod" external-dns.alpha.kubernetes.io/target: "humble-tunnel.{{ .Values.global.domain }}" external-dns.alpha.kubernetes.io/cloudflare-proxied: "true" diff --git a/system/templates/ingress-nginx.yaml b/system/templates/ingress-nginx.yaml index f1fa207b..674ba335 100644 --- a/system/templates/ingress-nginx.yaml +++ b/system/templates/ingress-nginx.yaml @@ -4,6 +4,8 @@ kind: Application metadata: name: {{ .Values.argocd.project }}-ingress-nginx namespace: {{ .Values.argocd.namespace }} + annotations: + argocd.argoproj.io/sync-wave: "1" finalizers: - resources-finalizer.argocd.argoproj.io spec: diff --git a/system/templates/loki.yaml b/system/templates/loki.yaml index 02e18d3f..641c3141 100644 --- a/system/templates/loki.yaml +++ b/system/templates/loki.yaml @@ -5,7 +5,7 @@ metadata: name: {{ .Values.argocd.project }}-loki-stack namespace: {{ .Values.argocd.namespace }} annotations: - argocd.argoproj.io/sync-wave: "0" + argocd.argoproj.io/sync-wave: "1" finalizers: - resources-finalizer.argocd.argoproj.io spec: