Skip to content

Commit 294bb5d

Browse files
authored
Merge branch 'master' into sambuc/fix-liveness-probe-repo
2 parents 116fe8a + 7d5b98c commit 294bb5d

5 files changed

Lines changed: 18 additions & 3 deletions

File tree

deploy/csi-rclone/templates/csi-controller-rbac.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
---
1113
apiVersion: rbac.authorization.k8s.io/v1
1214
kind: 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 -}}

deploy/csi-rclone/templates/csi-driver.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.driver.create -}}
12
apiVersion: storage.k8s.io/v1
23
kind: CSIDriver
34
metadata:
@@ -9,4 +10,5 @@ spec:
910
podInfoOnMount: false # are we sure about this?
1011
volumeLifecycleModes:
1112
- Persistent
12-
- Ephemeral
13+
- Ephemeral
14+
{{- end -}}

deploy/csi-rclone/templates/csi-nodeplugin-rbac.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
---
1113
apiVersion: rbac.authorization.k8s.io/v1
1214
kind: ClusterRole
@@ -98,4 +100,5 @@ roleRef:
98100
subjects:
99101
- kind: ServiceAccount
100102
name: '{{ include "chart.fullname" . }}-nodeplugin'
101-
namespace: '{{ .Release.Namespace }}'
103+
namespace: '{{ .Release.Namespace }}'
104+
{{- end -}}

deploy/csi-rclone/templates/csi-rclone-storageclass.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.storageClass.create -}}
12
apiVersion: storage.k8s.io/v1
23
kind: StorageClass
34
metadata:
@@ -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 -}}

deploy/csi-rclone/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
storageClassName: csi-rclone
2+
rbac:
3+
create: true
4+
driver:
5+
create: true
6+
storageClass:
7+
create: true
28
csiControllerRclone:
39
podAnnotations:
410
prometheus.io/scrape: "true"

0 commit comments

Comments
 (0)