15 lines
459 B
YAML
15 lines
459 B
YAML
{{- if .Values.controller.addHeaders -}}
|
|
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 }}
|
|
name: {{ include "ingress-nginx.fullname" . }}-custom-add-headers
|
|
namespace: {{ .Release.Namespace }}
|
|
data: {{ toYaml .Values.controller.addHeaders | nindent 2 }}
|
|
{{- end }}
|