mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-21 04:20:23 +00:00
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
|
{{- if .Values.rbac.create -}}
|
||
|
kind: ClusterRole
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
metadata:
|
||
|
name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}-rules
|
||
|
labels:
|
||
|
app: {{ include "ceph-csi-cephfs.name" . }}
|
||
|
chart: {{ include "ceph-csi-cephfs.chart" . }}
|
||
|
component: {{ .Values.provisioner.name }}
|
||
|
release: {{ .Release.Name }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
rbac.cephfs.csi.ceph.com/aggregate-to-{{ include "ceph-csi-cephfs.provisioner.fullname" . }}: "true"
|
||
|
rules:
|
||
|
- apiGroups: [""]
|
||
|
resources: ["nodes"]
|
||
|
verbs: ["get", "list", "watch"]
|
||
|
- apiGroups: [""]
|
||
|
resources: ["secrets"]
|
||
|
verbs: ["get", "list"]
|
||
|
- apiGroups: [""]
|
||
|
resources: ["persistentvolumes"]
|
||
|
verbs: ["get", "list", "watch", "create", "delete"]
|
||
|
- apiGroups: [""]
|
||
|
resources: ["persistentvolumeclaims"]
|
||
|
verbs: ["get", "list", "watch", "update"]
|
||
|
- apiGroups: ["storage.k8s.io"]
|
||
|
resources: ["storageclasses"]
|
||
|
verbs: ["get", "list", "watch"]
|
||
|
- apiGroups: [""]
|
||
|
resources: ["events"]
|
||
|
verbs: ["list", "watch", "create", "update", "patch"]
|
||
|
- apiGroups: ["csi.storage.k8s.io"]
|
||
|
resources: ["csinodeinfos"]
|
||
|
verbs: ["get", "list", "watch"]
|
||
|
{{ if .Values.attacher.enabled }}
|
||
|
- apiGroups: ["storage.k8s.io"]
|
||
|
resources: ["volumeattachments"]
|
||
|
verbs: ["get", "list", "watch", "update"]
|
||
|
{{ end }}
|
||
|
{{- end -}}
|