From cbf9922893ee4f91171a53cd56ec66cf3feb5bc3 Mon Sep 17 00:00:00 2001 From: DJ Gregor Date: Tue, 27 Jun 2023 13:44:36 -0400 Subject: [PATCH] add ability to disable creation of namespace From 450e752e9066c307e3265f999fcf97f5879c14dc --- horizon/templates/namespace.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/horizon/templates/namespace.yaml b/horizon/templates/namespace.yaml index fb5a559..0f09f40 100644 --- a/horizon/templates/namespace.yaml +++ b/horizon/templates/namespace.yaml @@ -1,4 +1,4 @@ -{{- if not (eq .Release.Name "default") }} +{- if and .Values.createNamespace (not (eq .Release.Name "default")) }} --- apiVersion: v1 kind: Namespace @@ -6,4 +6,4 @@ metadata: name: {{ .Release.Name }} labels: {{- include "core.labels" . | nindent 4 }} -{{- end }} \ No newline at end of file +{{- end }}