Refactor Distributed Analytics project structure
[demo.git] / vnfs / DAaaS / deploy / collection / charts / prometheus-node-exporter / templates / psp-clusterrolebinding.yaml
1 {{- if .Values.rbac.create }}
2 {{- if .Values.rbac.pspEnabled }}
3 apiVersion: rbac.authorization.k8s.io/v1beta1
4 kind: ClusterRoleBinding
5 metadata:
6   labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }}
7   name: psp-{{ template "prometheus-node-exporter.fullname" . }}
8 roleRef:
9   apiGroup: rbac.authorization.k8s.io
10   kind: ClusterRole
11   name: psp-{{ template "prometheus-node-exporter.fullname" . }}
12 subjects:
13   - kind: ServiceAccount
14     name: {{ template "prometheus-node-exporter.fullname" . }}
15     namespace: {{ .Release.Namespace }}
16 {{- end }}
17 {{- end }}