Create a Namespace resource as part of the static manifest bundle
This commit is contained in:
parent
09c6a09584
commit
105c6c149e
6
contrib/charts/cert-manager/templates/00-namespace.yaml
Normal file
6
contrib/charts/cert-manager/templates/00-namespace.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
{{ if .Values.createNamespaceResource }}
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: {{ .Release.Namespace | quote }}
|
||||
{{- end }}
|
||||
@ -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
|
||||
7
docs/deploy/rbac/00-namespace.yaml
Normal file
7
docs/deploy/rbac/00-namespace.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
##---
|
||||
# Source: cert-manager/templates/00-namespace.yaml
|
||||
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: "cert-manager"
|
||||
7
docs/deploy/without-rbac/00-namespace.yaml
Normal file
7
docs/deploy/without-rbac/00-namespace.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
##---
|
||||
# Source: cert-manager/templates/00-namespace.yaml
|
||||
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: "cert-manager"
|
||||
@ -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}/"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user