File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ metadata:
77 {{- include "chart.labels" . | nindent 4 }}
88 annotations :
99 {{- toYaml .Values.csiControllerRclone.serviceAccount.annotations | nindent 4 }}
10+
11+ {{ if .Values.rbac.create -}}
1012---
1113apiVersion : rbac.authorization.k8s.io/v1
1214kind : ClusterRole
@@ -216,7 +218,6 @@ roleRef:
216218 kind : ClusterRole
217219 name : ' {{ include "chart.fullname" . }}-external-provisioner-runner'
218220 apiGroup : rbac.authorization.k8s.io
219-
220221---
221222# Provisioner must be able to work with endpoints in current namespace
222223# if (and only if) leadership election is enabled
@@ -289,3 +290,4 @@ roleRef:
289290 kind : Role
290291 name : {{ include "chart.fullname" . }}-external-provisioner-cfg
291292 apiGroup : rbac.authorization.k8s.io
293+ {{- end -}}
Original file line number Diff line number Diff line change 1+ {{- if .Values.driver.create -}}
12apiVersion : storage.k8s.io/v1
23kind : CSIDriver
34metadata :
910 podInfoOnMount : false # are we sure about this?
1011 volumeLifecycleModes :
1112 - Persistent
12- - Ephemeral
13+ - Ephemeral
14+ {{- end -}}
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ metadata:
77 {{- include "chart.labels" . | nindent 4 }}
88 annotations :
99 {{- toYaml .Values.csiNodepluginRclone.serviceAccount.annotations | nindent 4 }}
10+
11+ {{ if .Values.rbac.create -}}
1012---
1113apiVersion : rbac.authorization.k8s.io/v1
1214kind : ClusterRole
@@ -98,4 +100,5 @@ roleRef:
98100subjects :
99101- kind : ServiceAccount
100102 name : ' {{ include "chart.fullname" . }}-nodeplugin'
101- namespace : ' {{ .Release.Namespace }}'
103+ namespace : ' {{ .Release.Namespace }}'
104+ {{- end -}}
Original file line number Diff line number Diff line change 1+ {{- if .Values.storageClass.create -}}
12apiVersion : storage.k8s.io/v1
23kind : StorageClass
34metadata :
@@ -26,3 +27,4 @@ parameters:
2627 # If creating a PersistentVolume by hand then set spec.csi.nodePublishSecretRef.name and spec.csi.NodePublishSecretRef.namespace
2728 csi.storage.k8s.io/node-publish-secret-name : ${pvc.annotations['csi-rclone.dev/secretName']}
2829 csi.storage.k8s.io/node-publish-secret-namespace : ${pvc.namespace}
30+ {{- end -}}
Original file line number Diff line number Diff line change 11storageClassName : csi-rclone
2+ rbac :
3+ create : true
4+ driver :
5+ create : true
6+ storageClass :
7+ create : true
28csiControllerRclone :
39 podAnnotations :
410 prometheus.io/scrape : " true"
You can’t perform that action at this time.
0 commit comments