From 36df0e565ce21c3365898ae7f9ec60e00e2dab67 Mon Sep 17 00:00:00 2001 From: Alexander Andryashin Date: Wed, 25 Oct 2023 18:22:51 +0300 Subject: [PATCH] Add skipCreateNamespace option. --- moon2/templates/namespaces.yaml | 2 ++ moon2/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/moon2/templates/namespaces.yaml b/moon2/templates/namespaces.yaml index 6891fc4..0f3fe95 100644 --- a/moon2/templates/namespaces.yaml +++ b/moon2/templates/namespaces.yaml @@ -4,6 +4,7 @@ {{- fail (printf "quota %s namespace is not set" $name) }} {{- end }} {{- if ne $quota.namespace $releaseNamespace }} +{{- if not $quota.skipCreateNamespace }} --- apiVersion: v1 kind: Namespace @@ -11,3 +12,4 @@ metadata: name: {{ $quota.namespace }} {{- end }} {{- end }} +{{- end }} diff --git a/moon2/values.yaml b/moon2/values.yaml index 6a9f91b..82a3093 100644 --- a/moon2/values.yaml +++ b/moon2/values.yaml @@ -482,6 +482,7 @@ browsers: ## moon: null ## alfa-team: ## namespace: alfa +## skipCreateNamespace: true ## serviceAccountName: custom ## serviceAccountAnnotations: {} ## beta-team: