2023-11-17 06:29:54 +00:00
{{- if .Values.rbac.create -}}
kind : ClusterRole
apiVersion : rbac.authorization.k8s.io/v1
metadata :
name : {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }}
2024-04-01 22:49:57 +00:00
namespace : {{ .Release.Namespace }}
2023-11-17 06:29:54 +00:00
labels :
app : {{ include "ceph-csi-cephfs.name" . }}
chart : {{ include "ceph-csi-cephfs.chart" . }}
component : {{ .Values.nodeplugin.name }}
release : {{ .Release.Name }}
heritage : {{ .Release.Service }}
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }}
rules :
- apiGroups : [ "" ]
resources : [ "nodes" ]
verbs : [ "get" ]
2024-04-01 22:49:57 +00:00
# allow to read Vault Token and connection options from the Tenants namespace
2024-03-18 08:50:13 +00:00
- apiGroups : [ "" ]
resources : [ "configmaps" ]
verbs : [ "get" ]
2024-04-01 22:49:57 +00:00
{{- if and .Values.encryptionKMSConfig .Values.encryptionKMSConfig.secretNamespace (not (eq .Values.encryptionKMSConfig.secretNamespace .Release.Namespace)) }}
# allow to read the encryption key used with the metadata KMS
2024-03-18 08:50:13 +00:00
- apiGroups : [ "" ]
resources : [ "secrets" ]
verbs : [ "get" ]
2023-11-17 06:29:54 +00:00
{{- end -}}
2024-04-01 22:49:57 +00:00
{{- end -}}