Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion deploy/csi-rclone/templates/csi-controller-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
{{- include "chart.labels" . | nindent 4 }}
annotations:
{{- toYaml .Values.csiControllerRclone.serviceAccount.annotations | nindent 4 }}

{{ if .Values.rbac.create -}}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down Expand Up @@ -216,7 +218,6 @@ roleRef:
kind: ClusterRole
name: '{{ include "chart.fullname" . }}-external-provisioner-runner'
apiGroup: rbac.authorization.k8s.io

---
# Provisioner must be able to work with endpoints in current namespace
# if (and only if) leadership election is enabled
Expand Down Expand Up @@ -289,3 +290,4 @@ roleRef:
kind: Role
name: {{ include "chart.fullname" . }}-external-provisioner-cfg
apiGroup: rbac.authorization.k8s.io
{{- end -}}
4 changes: 3 additions & 1 deletion deploy/csi-rclone/templates/csi-driver.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.driver.create -}}
apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
Expand All @@ -9,4 +10,5 @@ spec:
podInfoOnMount: false # are we sure about this?
volumeLifecycleModes:
- Persistent
- Ephemeral
- Ephemeral
{{- end -}}
5 changes: 4 additions & 1 deletion deploy/csi-rclone/templates/csi-nodeplugin-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
{{- include "chart.labels" . | nindent 4 }}
annotations:
{{- toYaml .Values.csiNodepluginRclone.serviceAccount.annotations | nindent 4 }}

{{ if .Values.rbac.create -}}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down Expand Up @@ -98,4 +100,5 @@ roleRef:
subjects:
- kind: ServiceAccount
name: '{{ include "chart.fullname" . }}-nodeplugin'
namespace: '{{ .Release.Namespace }}'
namespace: '{{ .Release.Namespace }}'
{{- end -}}
2 changes: 2 additions & 0 deletions deploy/csi-rclone/templates/csi-rclone-storageclass.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.storageClass.create -}}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
Expand Down Expand Up @@ -26,3 +27,4 @@ parameters:
# If creating a PersistentVolume by hand then set spec.csi.nodePublishSecretRef.name and spec.csi.NodePublishSecretRef.namespace
csi.storage.k8s.io/node-publish-secret-name: ${pvc.annotations['csi-rclone.dev/secretName']}
csi.storage.k8s.io/node-publish-secret-namespace: ${pvc.namespace}
{{- end -}}
6 changes: 6 additions & 0 deletions deploy/csi-rclone/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
storageClassName: csi-rclone
rbac:
create: true
driver:
create: true
storageClass:
create: true
csiControllerRclone:
podAnnotations:
prometheus.io/scrape: "true"
Expand Down
Loading