Collectd operator utilties
[demo.git] / vnfs / DAaaS / operator / charts / prometheus-operator / templates / prometheus-operator / psp-clusterrolebinding.yaml
1 {{- if and .Values.prometheusOperator.enabled .Values.global.rbac.create .Values.global.rbac.pspEnabled }}
2 kind: ClusterRoleBinding
3 apiVersion: rbac.authorization.k8s.io/v1
4 metadata:
5   name: {{ template "prometheus-operator.fullname" . }}-operator-psp
6   labels:
7     app: {{ template "prometheus-operator.name" . }}-operator
8 {{ include "prometheus-operator.labels" . | indent 4 }}
9 roleRef:
10   apiGroup: rbac.authorization.k8s.io
11   kind: ClusterRole
12   name: {{ template "prometheus-operator.fullname" . }}-operator-psp
13 subjects:
14   - kind: ServiceAccount
15     name: {{ template "prometheus-operator.operator.serviceAccountName" . }}
16     namespace: {{ .Release.Namespace }}
17 {{- end }}