| 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 |
| Giorgi Lekveishvili | cccf72f | 2023-05-19 16:13:22 +0400 | [diff] [blame^] | 7 | {{- with .Values.controller.labels }} |
| 8 | {{- toYaml . | nindent 4 }} |
| 9 | {{- end }} |
| Giorgi Lekveishvili | 725bb39 | 2023-05-05 18:24:27 +0400 | [diff] [blame] | 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 }} |
| 15 | data: |
| 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 Lekveishvili | cccf72f | 2023-05-19 16:13:22 +0400 | [diff] [blame^] | 20 | {{- if .Values.controller.proxySetHeaders }} |
| Giorgi Lekveishvili | 725bb39 | 2023-05-05 18:24:27 +0400 | [diff] [blame] | 21 | proxy-set-headers: {{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-custom-proxy-headers |
| 22 | {{- end }} |
| 23 | {{- if .Values.dhParam }} |
| Giorgi Lekveishvili | cccf72f | 2023-05-19 16:13:22 +0400 | [diff] [blame^] | 24 | ssl-dh-param: {{ .Release.Namespace }}/{{ include "ingress-nginx.controller.fullname" . }} |
| Giorgi Lekveishvili | 725bb39 | 2023-05-05 18:24:27 +0400 | [diff] [blame] | 25 | {{- end }} |
| 26 | {{- range $key, $value := .Values.controller.config }} |
| Giorgi Lekveishvili | cccf72f | 2023-05-19 16:13:22 +0400 | [diff] [blame^] | 27 | {{- $key | nindent 2 }}: {{ $value | quote }} |
| Giorgi Lekveishvili | 725bb39 | 2023-05-05 18:24:27 +0400 | [diff] [blame] | 28 | {{- end }} |