blob: 9ec2b83690f6356f69e74a69f1482ecd1644d62a [file] [log] [blame]
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04001apiVersion: v1
2kind: ConfigMap
3metadata:
4 labels:
5 {{- include "ingress-nginx.labels" . | nindent 4 }}
6 app.kubernetes.io/component: controller
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +04007 {{- with .Values.controller.labels }}
8 {{- toYaml . | nindent 4 }}
9 {{- end }}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040010{{- if .Values.controller.configAnnotations }}
11 annotations: {{ toYaml .Values.controller.configAnnotations | nindent 4 }}
12{{- end }}
13 name: {{ include "ingress-nginx.controller.fullname" . }}
14 namespace: {{ .Release.Namespace }}
15data:
16 allow-snippet-annotations: "{{ .Values.controller.allowSnippetAnnotations }}"
17{{- if .Values.controller.addHeaders }}
18 add-headers: {{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-custom-add-headers
19{{- end }}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040020{{- if .Values.controller.proxySetHeaders }}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040021 proxy-set-headers: {{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-custom-proxy-headers
22{{- end }}
23{{- if .Values.dhParam }}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040024 ssl-dh-param: {{ .Release.Namespace }}/{{ include "ingress-nginx.controller.fullname" . }}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040025{{- end }}
26{{- range $key, $value := .Values.controller.config }}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040027 {{- $key | nindent 2 }}: {{ $value | quote }}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040028{{- end }}