blob: 9ec2b83690f6356f69e74a69f1482ecd1644d62a [file] [log] [blame]
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +04001apiVersion: v1
2kind: ConfigMap
3metadata:
4 labels:
5 {{- include "ingress-nginx.labels" . | nindent 4 }}
6 app.kubernetes.io/component: controller
7 {{- with .Values.controller.labels }}
8 {{- toYaml . | nindent 4 }}
9 {{- end }}
10{{- 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 }}
20{{- if .Values.controller.proxySetHeaders }}
21 proxy-set-headers: {{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-custom-proxy-headers
22{{- end }}
23{{- if .Values.dhParam }}
24 ssl-dh-param: {{ .Release.Namespace }}/{{ include "ingress-nginx.controller.fullname" . }}
25{{- end }}
26{{- range $key, $value := .Values.controller.config }}
27 {{- $key | nindent 2 }}: {{ $value | quote }}
28{{- end }}