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
|
2021-11-19 14:52:52 +00:00
|
|
|
{{- with .Values.controller.labels }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
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" . }}
|
2023-10-24 17:53:46 +00:00
|
|
|
namespace: {{ include "ingress-nginx.namespace" . }}
|
2020-02-24 19:25:57 +00:00
|
|
|
data:
|
2024-08-26 20:09:16 +00:00
|
|
|
{{- if .Values.controller.allowSnippetAnnotations }}
|
|
|
|
allow-snippet-annotations: "true"
|
|
|
|
{{- end }}
|
2020-02-24 19:25:57 +00:00
|
|
|
{{- if .Values.controller.addHeaders }}
|
2023-10-24 17:53:46 +00:00
|
|
|
add-headers: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.fullname" . }}-custom-add-headers
|
2020-02-24 19:25:57 +00:00
|
|
|
{{- end }}
|
2023-03-17 01:39:16 +00:00
|
|
|
{{- if .Values.controller.proxySetHeaders }}
|
2023-10-24 17:53:46 +00:00
|
|
|
proxy-set-headers: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.fullname" . }}-custom-proxy-headers
|
2020-02-24 19:25:57 +00:00
|
|
|
{{- end }}
|
2021-01-28 02:04:26 +00:00
|
|
|
{{- if .Values.dhParam }}
|
2023-10-24 17:53:46 +00:00
|
|
|
ssl-dh-param: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.controller.fullname" . }}
|
2021-01-28 02:04:26 +00:00
|
|
|
{{- end }}
|
2020-12-28 08:26:06 +00:00
|
|
|
{{- range $key, $value := .Values.controller.config }}
|
2024-04-04 19:50:05 +00:00
|
|
|
{{- $key | nindent 2 }}: {{ tpl (toString $value) $ | quote }}
|
2020-02-24 19:25:57 +00:00
|
|
|
{{- end }}
|