Create a Namespace resource as part of the static manifest bundle

This commit is contained in:
James Munnelly 2018-02-23 08:38:22 +00:00
parent 09c6a09584
commit 105c6c149e
5 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,6 @@
{{ if .Values.createNamespaceResource }}
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Release.Namespace | quote }}
{{- end }}

View File

@ -55,3 +55,8 @@ ingressShim:
# tag: v0.2.3
pullPolicy: IfNotPresent
# This is used by the static manifest generator in order to create a static
# namespace manifest for the namespace that cert-manager is being installed
# within. It should **not** be used if you are using Helm for deployment.
createNamespaceResource: false

View File

@ -0,0 +1,7 @@
##---
# Source: cert-manager/templates/00-namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: "cert-manager"

View File

@ -0,0 +1,7 @@
##---
# Source: cert-manager/templates/00-namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: "cert-manager"

View File

@ -21,6 +21,7 @@ gen() {
--namespace "cert-manager" \
--name "cert-manager" \
--set "fullnameOverride=cert-manager" \
--set "createNamespaceResource=true" \
--output-dir "${TMP_OUTPUT}"
mv "${TMP_OUTPUT}"/cert-manager/templates/*.* "${OUTPUT_DIR}/"
}