18 lines
512 B
YAML
18 lines
512 B
YAML
|
{{- if not .Values.controller.customConfigMap -}}
|
||
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: {{ include "nginx-ingress.configName" . }}
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
{{- include "nginx-ingress.labels" . | nindent 4 }}
|
||
|
{{- if .Values.controller.config.annotations }}
|
||
|
annotations:
|
||
|
{{ toYaml .Values.controller.config.annotations | indent 4 }}
|
||
|
{{- end }}
|
||
|
data:
|
||
|
{{- if .Values.controller.config.entries }}
|
||
|
{{ toYaml .Values.controller.config.entries | indent 2 }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|