Skip to content

Commit 71f829a

Browse files
[manila-csi-plugin] helm: support additional volumes in manila csi chart (#2890)
* helm: support additional volumes in manila csi chart * fix typo * fix typo * bump chart version
1 parent 12afb20 commit 71f829a

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

charts/manila-csi-plugin/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: v1.32.0
33
description: Manila CSI Chart for OpenStack
44
name: openstack-manila-csi
5-
version: 2.33.0-alpha.2
5+
version: 2.33.0-alpha.3
66
home: http://github.com/kubernetes/cloud-provider-openstack
77
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
88
maintainers:

charts/manila-csi-plugin/templates/controllerplugin-statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ spec:
132132
mountPath: /runtimeconfig
133133
readOnly: true
134134
{{- end }}
135+
{{- with $.Values.controllerplugin.volumeMounts }}
136+
{{- toYaml . | nindent 12 }}
137+
{{- end }}
135138
resources:
136139
{{ toYaml $.Values.controllerplugin.nodeplugin.resources | indent 12 }}
137140
{{- end }}
@@ -155,6 +158,9 @@ spec:
155158
hostPath:
156159
path: /var/lib/kubelet/pods
157160
type: Directory
161+
{{- with .Values.controllerplugin.volumes }}
162+
{{- toYaml . | nindent 8 }}
163+
{{- end }}
158164
{{- if .Values.controllerplugin.affinity }}
159165
affinity: {{ toYaml .Values.controllerplugin.affinity | nindent 8 }}
160166
{{- end }}

charts/manila-csi-plugin/templates/nodeplugin-daemonset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ spec:
8787
mountPath: /runtimeconfig
8888
readOnly: true
8989
{{- end }}
90+
{{- with $.Values.nodeplugin.volumeMounts }}
91+
{{- toYaml . | nindent 12 }}
92+
{{- end }}
9093
resources:
9194
{{ toYaml $.Values.nodeplugin.nodeplugin.resources | indent 12 }}
9295
{{- end }}
@@ -110,6 +113,9 @@ spec:
110113
name: manila-csi-runtimeconf-cm
111114
{{- end }}
112115
{{- end }}
116+
{{- with .Values.nodeplugin.volumes }}
117+
{{- toYaml . | nindent 8 }}
118+
{{- end }}
113119
{{- if .Values.nodeplugin.affinity }}
114120
affinity: {{ toYaml .Values.nodeplugin.affinity | nindent 8 }}
115121
{{- end }}

charts/manila-csi-plugin/values.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ nodeplugin:
7676
# Use fullnameOverride to fully override the name of this component
7777
# fullnameOverride: some-other-name
7878
podSecurityContext: {}
79+
volumes: []
80+
volumeMounts: []
7981

8082
# StatefulSet deployment
8183
controllerplugin:
@@ -121,6 +123,17 @@ controllerplugin:
121123
# Use fullnameOverride to fully override the name of this component
122124
# fullnameOverride: some-other-name
123125
podSecurityContext: {}
126+
volumes: []
127+
# - name: cacert
128+
# hostPath:
129+
# path: /etc/cacert
130+
volumeMounts: []
131+
# - name: cacert
132+
# mountPath: /etc/cacert
133+
# readOnly: true
134+
# - name: cloud-config
135+
# mountPath: /etc/kubernetes
136+
# readOnly: true
124137

125138
# Log verbosity level.
126139
# See https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/logging.md

0 commit comments

Comments
 (0)