1 {{- if .Values.rbac.create }}
2 {{- if .Values.rbac.pspEnabled }}
4 apiVersion: rbac.authorization.k8s.io/v1beta1
6 labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }}
7 name: psp-{{ template "prometheus-node-exporter.fullname" . }}
9 - apiGroups: ['extensions']
10 resources: ['podsecuritypolicies']
13 - {{ template "prometheus-node-exporter.fullname" . }}