Skip to content

Commit 0331a82

Browse files
committed
fix: add missing namespaces template
1 parent 08951a5 commit 0331a82

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

argocd/apps/templates/namespaces.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{- if .Values.namespaces }}
2+
{{- range $ns, $annots := index .Values.namespaces }}
3+
{{- $list := list }}
4+
---
5+
apiVersion: "v1"
6+
kind: "Namespace"
7+
metadata:
8+
name: {{ $ns | quote }}
9+
annotations:
10+
argocd.argoproj.io/sync-wave: "-99"
11+
{{- if and ($annots) (ne $ns "kube-prometheus-stack") (ne $ns "aad-pod-identity") (ne $ns "csi-secrets-store-provider-azure") (ne $ns "loki-stack")}}
12+
{{- range $k, $v := $annots }}
13+
{{- $list = append $list (printf "%s=%s" $k $v) }}
14+
{{- end }}
15+
scheduler.alpha.kubernetes.io/node-selector: {{ join ", " $list | quote }}
16+
{{- end }}
17+
{{- end }}
18+
{{- end }}

0 commit comments

Comments
 (0)