constellation/internal/helm/charts/cilium/templates/cilium-secrets-namespace.yaml

15 lines
452 B
YAML
Raw Normal View History

{{- $secretNamespaces := dict -}}
{{- range $cfg := tuple .Values.ingressController .Values.gatewayAPI .Values.envoyConfig .Values.bgpControlPlane -}}
{{- if and $cfg.enabled $cfg.secretsNamespace.create $cfg.secretsNamespace.name -}}
{{- $_ := set $secretNamespaces $cfg.secretsNamespace.name 1 -}}
{{- end -}}
{{- end -}}
{{- range $name, $_ := $secretNamespaces }}
---
2022-08-12 04:20:19 -04:00
apiVersion: v1
kind: Namespace
metadata:
name: {{ $name | quote }}
2022-08-12 04:20:19 -04:00
{{- end}}