ingress-nginx-helm/charts/ingress-nginx/templates/controller-configmap-addheaders.yaml
Long 2a190d2657
added namespace field in the namespace scoped resource templates of helm chart (#7256)
* added namespace field in the namespace scoped resource templates of helm chart

* moved namespace field from roleRef to metadata
2021-06-21 04:56:51 -07:00

11 lines
370 B
YAML

{{- if .Values.controller.addHeaders -}}
apiVersion: v1
kind: ConfigMap
metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
name: {{ include "ingress-nginx.fullname" . }}-custom-add-headers
namespace: {{ .Release.Namespace }}
data: {{ toYaml .Values.controller.addHeaders | nindent 2 }}
{{- end }}