We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08951a5 commit 0331a82Copy full SHA for 0331a82
argocd/apps/templates/namespaces.yaml
@@ -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
17
+{{- end }}
18
0 commit comments