github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/prometheus/clusterrolebinding.yaml (about)

     1  {{- if and .Values.prometheus.enabled .Values.global.rbac.create }}
     2  apiVersion: rbac.authorization.k8s.io/v1
     3  kind: ClusterRoleBinding
     4  metadata:
     5    name: {{ template "kube-prometheus-stack.fullname" . }}-prometheus
     6    labels:
     7      app: {{ template "kube-prometheus-stack.name" . }}-prometheus
     8  {{ include "kube-prometheus-stack.labels" . | indent 4 }}
     9  roleRef:
    10    apiGroup: rbac.authorization.k8s.io
    11    kind: ClusterRole
    12    name: {{ template "kube-prometheus-stack.fullname" . }}-prometheus
    13  subjects:
    14    - kind: ServiceAccount
    15      name: {{ template "kube-prometheus-stack.prometheus.serviceAccountName" . }}
    16      namespace: {{ template "kube-prometheus-stack.namespace" . }}
    17  {{- end }}
    18