1 {{- if and .Values.alertmanager.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" . }}-alertmanager
7 app: {{ template "prometheus-operator.name" . }}-alertmanager
8 {{ include "prometheus-operator.labels" . | indent 4 }}
10 apiGroup: rbac.authorization.k8s.io
12 name: {{ template "prometheus-operator.fullname" . }}-alertmanager
14 - kind: ServiceAccount
15 name: {{ template "prometheus-operator.alertmanager.serviceAccountName" . }}
16 namespace: {{ .Release.Namespace }}