controller-configmap-addheaders.yaml 459 B

1234567891011121314
  1. {{- if .Values.controller.addHeaders -}}
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. labels:
  6. {{- include "ingress-nginx.labels" . | nindent 4 }}
  7. app.kubernetes.io/component: controller
  8. {{- with .Values.controller.labels }}
  9. {{- toYaml . | nindent 4 }}
  10. {{- end }}
  11. name: {{ include "ingress-nginx.fullname" . }}-custom-add-headers
  12. namespace: {{ .Release.Namespace }}
  13. data: {{ toYaml .Values.controller.addHeaders | nindent 2 }}
  14. {{- end }}