ingress-nginx-helm/charts/ingress-nginx/templates/controller-configmap.yaml

31 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2020-02-24 19:25:57 +00:00
apiVersion: v1
kind: ConfigMap
metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
{{- 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 }}
name: {{ include "ingress-nginx.controller.fullname" . }}
namespace: {{ include "ingress-nginx.namespace" . }}
2020-02-24 19:25:57 +00:00
data:
{{- if .Values.controller.allowSnippetAnnotations }}
allow-snippet-annotations: "true"
{{- end }}
2020-02-24 19:25:57 +00:00
{{- if .Values.controller.addHeaders }}
add-headers: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.fullname" . }}-custom-add-headers
2020-02-24 19:25:57 +00:00
{{- end }}
{{- if .Values.controller.proxySetHeaders }}
proxy-set-headers: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.fullname" . }}-custom-proxy-headers
2020-02-24 19:25:57 +00:00
{{- end }}
{{- if .Values.dhParam }}
ssl-dh-param: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.controller.fullname" . }}
{{- end }}
2020-12-28 08:26:06 +00:00
{{- range $key, $value := .Values.controller.config }}
{{- $key | nindent 2 }}: {{ tpl (toString $value) $ | quote }}
2020-02-24 19:25:57 +00:00
{{- end }}