diff --git a/moon2/templates/namespaces.yaml b/moon2/templates/namespaces.yaml index 6891fc4..331da04 100644 --- a/moon2/templates/namespaces.yaml +++ b/moon2/templates/namespaces.yaml @@ -3,7 +3,7 @@ {{- if or (not $quota) (not $quota.namespace) }} {{- fail (printf "quota %s namespace is not set" $name) }} {{- end }} -{{- if ne $quota.namespace $releaseNamespace }} +{{- if and (ne $quota.createNamespace false) (ne $quota.namespace $releaseNamespace) }} --- apiVersion: v1 kind: Namespace