Collectd operator utilties
[demo.git] / vnfs / DAaaS / deploy / operator / charts / prometheus-operator / templates / alertmanager / psp-clusterrole.yaml
1 {{- if and .Values.alertmanager.enabled .Values.global.rbac.create .Values.global.rbac.pspEnabled }}
2 kind: ClusterRole
3 apiVersion: rbac.authorization.k8s.io/v1
4 metadata:
5   name: {{ template "prometheus-operator.fullname" . }}-alertmanager
6   labels:
7     app: {{ template "prometheus-operator.name" . }}-alertmanager
8 {{ include "prometheus-operator.labels" . | indent 4 }}
9 rules:
10 - apiGroups: ['extensions']
11   resources: ['podsecuritypolicies']
12   verbs:     ['use']
13   resourceNames:
14   - {{ template "prometheus-operator.fullname" . }}-alertmanager
15 {{- end }}