{{- if .Values.kubeRBACProxy.enabled}} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "prometheus-node-exporter.fullname" . }}-rbac-config data: config-file.yaml: |+ authorization: resourceAttributes: namespace: {{ template "prometheus-node-exporter.namespace" . }} apiVersion: v1 resource: services subresource: {{ template "prometheus-node-exporter.fullname" . }} name: {{ template "prometheus-node-exporter.fullname" . }} {{- end }}