| Giorgi Lekveishvili | 725bb39 | 2023-05-05 18:24:27 +0400 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: ConfigMap |
| 3 | metadata: |
| 4 | labels: |
| 5 | {{- include "ingress-nginx.labels" . | nindent 4 }} |
| 6 | app.kubernetes.io/component: controller |
| 7 | {{- if .Values.controller.configAnnotations }} |
| 8 | annotations: {{ toYaml .Values.controller.configAnnotations | nindent 4 }} |
| 9 | {{- end }} |
| 10 | name: {{ include "ingress-nginx.controller.fullname" . }} |
| 11 | namespace: {{ .Release.Namespace }} |
| 12 | data: |
| 13 | allow-snippet-annotations: "{{ .Values.controller.allowSnippetAnnotations }}" |
| 14 | {{- if .Values.controller.addHeaders }} |
| 15 | add-headers: {{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-custom-add-headers |
| 16 | {{- end }} |
| 17 | {{- if or .Values.controller.proxySetHeaders .Values.controller.headers }} |
| 18 | proxy-set-headers: {{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-custom-proxy-headers |
| 19 | {{- end }} |
| 20 | {{- if .Values.dhParam }} |
| 21 | ssl-dh-param: {{ printf "%s/%s" .Release.Namespace (include "ingress-nginx.controller.fullname" .) }} |
| 22 | {{- end }} |
| 23 | {{- range $key, $value := .Values.controller.config }} |
| 24 | {{ $key | nindent 2 }}: {{ $value | quote }} |
| 25 | {{- end }} |
| 26 | |