{{ if and .Values.watchNamespace .Values.createNamespace }}
{{ range ( split "," .Values.watchNamespace ) }}
apiVersion: v1
kind: Namespace
metadata:
name: {{ trim . }}
annotations:
helm.sh/resource-policy: keep
---
{{ end }}