2018-12-10 19:25:34 +00:00
|
|
|
{{- if .Values.rbac.create -}}
|
|
|
|
kind: ClusterRole
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: {{ include "ceph-csi-rbd.provisioner.fullname" . }}
|
|
|
|
labels:
|
|
|
|
app: {{ include "ceph-csi-rbd.name" . }}
|
|
|
|
chart: {{ include "ceph-csi-rbd.chart" . }}
|
|
|
|
component: {{ .Values.provisioner.name }}
|
|
|
|
release: {{ .Release.Name }}
|
|
|
|
heritage: {{ .Release.Service }}
|
2019-04-16 07:49:59 +00:00
|
|
|
aggregationRule:
|
|
|
|
clusterRoleSelectors:
|
|
|
|
- matchLabels:
|
|
|
|
rbac.rbd.csi.ceph.com/aggregate-to-{{ include "ceph-csi-rbd.provisioner.fullname" . }}: "true"
|
|
|
|
rules: []
|
2018-12-10 19:25:34 +00:00
|
|
|
{{- end -}}
|