blob: 3d0a636a3717768fe040639d57baddcc1eb07515 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{{- if .Values.rbac.create }}
{{- if .Values.rbac.pspEnabled }}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }}
name: psp-{{ template "prometheus-node-exporter.fullname" . }}
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
- {{ template "prometheus-node-exporter.fullname" . }}
{{- end }}
{{- end }}
|