aboutsummaryrefslogtreecommitdiffstats
path: root/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/charts/prometheus-node-exporter/templates/psp-clusterrolebinding.yaml
blob: d36d93ecf5e063ada46513e6e483950305868385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{- if .Values.rbac.create }}
{{- if .Values.rbac.pspEnabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: psp-{{ template "prometheus-node-exporter.fullname" . }}
  labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }}
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: psp-{{ template "prometheus-node-exporter.fullname" . }}
subjects:
  - kind: ServiceAccount
    name: {{ template "prometheus-node-exporter.fullname" . }}
    namespace: {{ template "prometheus-node-exporter.namespace" . }}
{{- end }}
{{- end }}