2020-02-24 19:25:57 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
labels:
|
2020-02-28 14:53:24 +00:00
|
|
|
{{- include "ingress-nginx.labels" . | nindent 4 }}
|
2020-03-04 02:53:23 +00:00
|
|
|
app.kubernetes.io/component: controller
|
2020-03-02 14:49:26 +00:00
|
|
|
{{- if .Values.controller.configAnnotations }}
|
|
|
|
annotations: {{ toYaml .Values.controller.configAnnotations | nindent 4 }}
|
|
|
|
{{- end }}
|
2020-03-04 02:53:23 +00:00
|
|
|
name: {{ include "ingress-nginx.controller.fullname" . }}
|
2020-02-24 19:25:57 +00:00
|
|
|
data:
|
|
|
|
{{- if .Values.controller.addHeaders }}
|
2020-02-28 14:53:24 +00:00
|
|
|
add-headers: {{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-custom-add-headers
|
2020-02-24 19:25:57 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if or .Values.controller.proxySetHeaders .Values.controller.headers }}
|
2020-02-28 14:53:24 +00:00
|
|
|
proxy-set-headers: {{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-custom-proxy-headers
|
2020-02-24 19:25:57 +00:00
|
|
|
{{- end }}
|
2020-12-28 08:26:06 +00:00
|
|
|
{{- range $key, $value := .Values.controller.config }}
|
|
|
|
{{ $key | nindent 2 }}: {{ $value | quote }}
|
2020-02-24 19:25:57 +00:00
|
|
|
{{- end }}
|
2020-12-28 08:26:06 +00:00
|
|
|
|