2020-02-24 16:25:57 -03:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ConfigMap
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
2020-02-28 08:53:24 -06:00
|
|
|
{{- include "ingress-nginx.labels" . | nindent 4 }}
|
2020-03-03 21:53:23 -05:00
|
|
|
app.kubernetes.io/component: controller
|
2021-11-19 15:52:52 +01:00
|
|
|
{{- with .Values.controller.labels }}
|
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
|
{{- end }}
|
2020-03-02 08:49:26 -06:00
|
|
|
{{- if .Values.controller.configAnnotations }}
|
|
|
|
|
annotations: {{ toYaml .Values.controller.configAnnotations | nindent 4 }}
|
|
|
|
|
{{- end }}
|
2020-03-03 21:53:23 -05:00
|
|
|
name: {{ include "ingress-nginx.controller.fullname" . }}
|
2023-10-25 01:53:46 +08:00
|
|
|
namespace: {{ include "ingress-nginx.namespace" . }}
|
2020-02-24 16:25:57 -03:00
|
|
|
data:
|
2024-08-26 22:09:16 +02:00
|
|
|
{{- if .Values.controller.allowSnippetAnnotations }}
|
|
|
|
|
allow-snippet-annotations: "true"
|
|
|
|
|
{{- end }}
|
2020-02-24 16:25:57 -03:00
|
|
|
{{- if .Values.controller.addHeaders }}
|
2023-10-25 01:53:46 +08:00
|
|
|
add-headers: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.fullname" . }}-custom-add-headers
|
2020-02-24 16:25:57 -03:00
|
|
|
{{- end }}
|
2023-03-17 02:39:16 +01:00
|
|
|
{{- if .Values.controller.proxySetHeaders }}
|
2023-10-25 01:53:46 +08:00
|
|
|
proxy-set-headers: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.fullname" . }}-custom-proxy-headers
|
2020-02-24 16:25:57 -03:00
|
|
|
{{- end }}
|
2021-01-27 21:04:26 -05:00
|
|
|
{{- if .Values.dhParam }}
|
2023-10-25 01:53:46 +08:00
|
|
|
ssl-dh-param: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.controller.fullname" . }}
|
2021-01-27 21:04:26 -05:00
|
|
|
{{- end }}
|
2020-12-28 10:26:06 +02:00
|
|
|
{{- range $key, $value := .Values.controller.config }}
|
2024-04-04 12:50:05 -07:00
|
|
|
{{- $key | nindent 2 }}: {{ tpl (toString $value) $ | quote }}
|
2020-02-24 16:25:57 -03:00
|
|
|
{{- end }}
|