Skip to content

Commit

Permalink
fix: sync-wave order
Browse files Browse the repository at this point in the history
  • Loading branch information
locmai committed Dec 31, 2021
1 parent adbbc85 commit bf34dfe
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 4 deletions.
2 changes: 2 additions & 0 deletions apps/templates/filebrowser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions apps/templates/saleor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions bootstrap/app/templates/apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: AppProject
metadata:
name: apps
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-1"
spec:
description: apps project
clusterResourceWhitelist:
Expand Down
4 changes: 3 additions & 1 deletion bootstrap/app/templates/global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -49,4 +51,4 @@ spec:
global:
domain: {{ .Values.global.domain }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions bootstrap/app/templates/platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: AppProject
metadata:
name: platform
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-1"
spec:
description: platform project
clusterResourceWhitelist:
Expand Down
4 changes: 3 additions & 1 deletion bootstrap/app/templates/system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -49,4 +51,4 @@ spec:
global:
domain: {{ .Values.global.domain }}
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion system/templates/dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -21,4 +23,4 @@ spec:
repoURL: 'https://github.com/locmai/humble-grafana-dashboards.git'
path: ./
targetRevision: {{ .Values.dashboard.targetRevision }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions system/templates/grafana-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions system/templates/ingress-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion system/templates/loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bf34dfe

Please sign in to comment.