controller-configmap-proxyheaders.yaml 693 B

12345678910111213141516171819
  1. {{- if or .Values.controller.proxySetHeaders .Values.controller.headers -}}
  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-proxy-headers
  12. namespace: {{ .Release.Namespace }}
  13. data:
  14. {{- if .Values.controller.proxySetHeaders }}
  15. {{ toYaml .Values.controller.proxySetHeaders | indent 2 }}
  16. {{ else if and .Values.controller.headers (not .Values.controller.proxySetHeaders) }}
  17. {{ toYaml .Values.controller.headers | indent 2 }}
  18. {{- end }}
  19. {{- end }}