Skip to content

Commit

Permalink
fix: add missing namespaces template
Browse files Browse the repository at this point in the history
  • Loading branch information
fsismondi committed Feb 16, 2022
1 parent 08951a5 commit 0331a82
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions argocd/apps/templates/namespaces.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Values.namespaces }}
{{- range $ns, $annots := index .Values.namespaces }}
{{- $list := list }}
---
apiVersion: "v1"
kind: "Namespace"
metadata:
name: {{ $ns | quote }}
annotations:
argocd.argoproj.io/sync-wave: "-99"
{{- if and ($annots) (ne $ns "kube-prometheus-stack") (ne $ns "aad-pod-identity") (ne $ns "csi-secrets-store-provider-azure") (ne $ns "loki-stack")}}
{{- range $k, $v := $annots }}
{{- $list = append $list (printf "%s=%s" $k $v) }}
{{- end }}
scheduler.alpha.kubernetes.io/node-selector: {{ join ", " $list | quote }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 0331a82

Please sign in to comment.