2020-03-18 17:38:40 +00:00
|
|
|
{{- if .Values.rbac.create -}}
|
|
|
|
kind: ClusterRole
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }}
|
|
|
|
labels:
|
|
|
|
app: {{ include "ceph-csi-rbd.name" . }}
|
|
|
|
chart: {{ include "ceph-csi-rbd.chart" . }}
|
|
|
|
component: {{ .Values.nodeplugin.name }}
|
|
|
|
release: {{ .Release.Name }}
|
|
|
|
heritage: {{ .Release.Service }}
|
2022-10-14 14:59:09 +00:00
|
|
|
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }}
|
2020-08-12 15:25:36 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["nodes"]
|
|
|
|
verbs: ["get"]
|
2020-12-16 08:52:36 +00:00
|
|
|
# allow to read Vault Token and connection options from the Tenants namespace
|
2020-12-10 10:27:11 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["secrets"]
|
|
|
|
verbs: ["get"]
|
2020-12-16 08:52:36 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["configmaps"]
|
|
|
|
verbs: ["get"]
|
2021-06-24 10:39:40 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["serviceaccounts"]
|
|
|
|
verbs: ["get"]
|
2021-05-31 11:12:21 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["persistentvolumes"]
|
|
|
|
verbs: ["get"]
|
|
|
|
- apiGroups: ["storage.k8s.io"]
|
|
|
|
resources: ["volumeattachments"]
|
|
|
|
verbs: ["list", "get"]
|
2022-06-08 14:11:36 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["serviceaccounts/token"]
|
|
|
|
verbs: ["create"]
|
2020-03-18 17:38:40 +00:00
|
|
|
{{- end -}}
|