From 437d4dc04d54d7c05085878017cbb4e0331f7cbd Mon Sep 17 00:00:00 2001 From: Michael Gaida Date: Tue, 25 Sep 2018 15:19:08 +0700 Subject: [PATCH] Configurable namespace creation (#855) Configurable namespace creation defaulting to true (backward compatible) --- charts/fission-all/templates/deployment.yaml | 3 ++- charts/fission-all/values.yaml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/fission-all/templates/deployment.yaml b/charts/fission-all/templates/deployment.yaml index 94e2de98..b8038011 100644 --- a/charts/fission-all/templates/deployment.yaml +++ b/charts/fission-all/templates/deployment.yaml @@ -1,4 +1,5 @@ --- +{{- if .Values.createNamespace }} apiVersion: v1 kind: Namespace metadata: @@ -21,7 +22,7 @@ metadata: {{- if .Values.enableIstio }} istio-injection: enabled {{- end }} - +{{- end }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/charts/fission-all/values.yaml b/charts/fission-all/values.yaml index 08e22d51..df896aba 100644 --- a/charts/fission-all/values.yaml +++ b/charts/fission-all/values.yaml @@ -33,6 +33,9 @@ routerPort: 31314 ## Port at which NATS streaming service should be exposed natsStreamingPort: 31316 +## Set to false if you create the namespaces manually +createNamespace: true + ## Namespace in which to run fission functions (this is different from ## the release namespace) functionNamespace: fission-function