1 {{- if and .Values.prometheus.enabled .Values.global.rbac.create }}
2 apiVersion: rbac.authorization.k8s.io/v1
5 name: {{ template "prometheus-operator.fullname" . }}-prometheus-config
7 app: {{ template "prometheus-operator.name" . }}-prometheus
8 {{ include "prometheus-operator.labels" . | indent 4 }}