forked from public/stack
19 lines
869 B
YAML
19 lines
869 B
YAML
{{- if and .Values.ingressController.enabled .Values.ingressController.secretsNamespace.create .Values.ingressController.secretsNamespace.name }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
|
{{- end}}
|
|
|
|
# Only create the namespace if it's different from Ingress secret namespace or Ingress is not enabled.
|
|
{{- if and .Values.gatewayAPI.enabled .Values.gatewayAPI.secretsNamespace.create .Values.gatewayAPI.secretsNamespace.name
|
|
(or (not (and .Values.ingressController.enabled .Values.ingressController.secretsNamespace.create .Values.ingressController.secretsNamespace.name))
|
|
(ne .Values.gatewayAPI.secretsNamespace.name .Values.ingressController.secretsNamespace.name)) }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: {{ .Values.gatewayAPI.secretsNamespace.name | quote }}
|
|
{{- end}}
|