blob: dfd49a1267beff19c630fc77769020724bea136f [file] [log] [blame]
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04001{{- if .Values.controller.addHeaders -}}
2apiVersion: v1
3kind: ConfigMap
4metadata:
5 labels:
6 {{- include "ingress-nginx.labels" . | nindent 4 }}
7 app.kubernetes.io/component: controller
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +04008 {{- with .Values.controller.labels }}
9 {{- toYaml . | nindent 4 }}
10 {{- end }}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040011 name: {{ include "ingress-nginx.fullname" . }}-custom-add-headers
12 namespace: {{ .Release.Namespace }}
13data: {{ toYaml .Values.controller.addHeaders | nindent 2 }}
14{{- end }}