1 {{- if and .Values.prometheus.enabled .Values.global.rbac.create .Values.global.rbac.pspEnabled }}
2 apiVersion: rbac.authorization.k8s.io/v1
3 kind: ClusterRoleBinding
5 name: {{ template "prometheus-operator.fullname" . }}-prometheus-psp
7 app: {{ template "prometheus-operator.name" . }}-prometheus
8 {{ include "prometheus-operator.labels" . | indent 4 }}
10 apiGroup: rbac.authorization.k8s.io
12 name: {{ template "prometheus-operator.fullname" . }}-prometheus-psp
14 - kind: ServiceAccount
15 name: {{ template "prometheus-operator.prometheus.serviceAccountName" . }}
16 namespace: {{ .Release.Namespace }}