Skip to content

Commit ce19d55

Browse files
16020771602077
andauthored
deploy: plugin image tags default to pull from Chart AppVersion (#144)
Co-authored-by: 1602077 <jack.charlie.munday@cern.ch>
1 parent 1bf0edd commit ce19d55

File tree

4 files changed

+14
-19
lines changed

4 files changed

+14
-19
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
2-
appVersion: "2.1.1"
2+
appVersion: "v2.4.0"
33
description: A Helm chart to deploy the CVMFS-CSI Plugin
44
name: cvmfs-csi
5-
version: 2.1.1
5+
version: 2.4.0

deployments/helm/cvmfs-csi/templates/controllerplugin-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
resources: {{ toYaml . | nindent 12 }}
3838
{{- end }}
3939
- name: controllerplugin
40-
image: {{ .Values.controllerplugin.plugin.image.repository }}:{{ .Values.controllerplugin.plugin.image.tag }}
40+
image: {{ .Values.controllerplugin.plugin.image.repository }}:{{ .Values.controllerplugin.plugin.image.tag | default .Chart.AppVersion }}
4141
imagePullPolicy: {{ .Values.controllerplugin.plugin.image.pullPolicy }}
4242
command: [/csi-cvmfsplugin]
4343
args:

deployments/helm/cvmfs-csi/templates/nodeplugin-daemonset.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
resources: {{ toYaml . | nindent 12 }}
4545
{{- end }}
4646
- name: nodeplugin
47-
image: {{ .Values.nodeplugin.plugin.image.repository }}:{{ .Values.nodeplugin.plugin.image.tag }}
47+
image: {{ .Values.nodeplugin.plugin.image.repository }}:{{ .Values.nodeplugin.plugin.image.tag | default .Chart.AppVersion }}
4848
command: [/csi-cvmfsplugin]
4949
args:
5050
- -v={{ .Values.logVerbosityLevel }}
@@ -95,7 +95,7 @@ spec:
9595
resources: {{ toYaml . | nindent 12 }}
9696
{{- end }}
9797
- name: automount
98-
image: {{ .Values.nodeplugin.automount.image.repository }}:{{ .Values.nodeplugin.automount.image.tag }}
98+
image: {{ .Values.nodeplugin.automount.image.repository }}:{{ .Values.nodeplugin.automount.image.tag | default .Chart.AppVersion }}
9999
command: [/automount-runner]
100100
args:
101101
- -v={{ .Values.logVerbosityLevel }}
@@ -131,7 +131,7 @@ spec:
131131
resources: {{ toYaml . | nindent 12 }}
132132
{{- end }}
133133
- name: automount-reconciler
134-
image: {{ .Values.nodeplugin.automountReconciler.image.repository }}:{{ .Values.nodeplugin.automountReconciler.image.tag }}
134+
image: {{ .Values.nodeplugin.automountReconciler.image.repository }}:{{ .Values.nodeplugin.automountReconciler.image.tag | default .Chart.AppVersion }}
135135
command: [/automount-reconciler]
136136
args:
137137
- -v={{ .Values.logVerbosityLevel }}
@@ -155,7 +155,7 @@ spec:
155155
resources: {{ toYaml . | nindent 12 }}
156156
{{- end }}
157157
- name: singlemount
158-
image: {{ .Values.nodeplugin.singlemount.image.repository }}:{{ .Values.nodeplugin.singlemount.image.tag }}
158+
image: {{ .Values.nodeplugin.singlemount.image.repository }}:{{ .Values.nodeplugin.singlemount.image.tag | default .Chart.AppVersion }}
159159
command: [/singlemount-runner]
160160
args:
161161
- -v={{ .Values.logVerbosityLevel }}

deployments/helm/cvmfs-csi/values.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ cache:
5252
# Node plugin handles node-local operations, e.g. mounting and unmounting
5353
# CVMFS repositories.
5454
nodeplugin:
55-
5655
# Component name. Used as `component` label value
5756
# and to generate DaemonSet name.
5857
name: nodeplugin
@@ -70,15 +69,15 @@ nodeplugin:
7069
plugin:
7170
image:
7271
repository: registry.cern.ch/kubernetes/cvmfs-csi
73-
tag: v2.3.2
72+
tag: "" # If no tag specified default to Chart AppVersion.
7473
pullPolicy: IfNotPresent
7574
resources: {}
7675

7776
# automount-runner image and container resources specs.
7877
automount:
7978
image:
8079
repository: registry.cern.ch/kubernetes/cvmfs-csi
81-
tag: v2.3.2
80+
tag: "" # If no tag specified default to Chart AppVersion.
8281
pullPolicy: IfNotPresent
8382
resources: {}
8483
# Extra volume mounts to append to nodeplugin's
@@ -94,7 +93,7 @@ nodeplugin:
9493
automountReconciler:
9594
image:
9695
repository: registry.cern.ch/kubernetes/cvmfs-csi
97-
tag: v2.3.2
96+
tag: "" # If no tag specified default to Chart AppVersion.
9897
pullPolicy: IfNotPresent
9998
resources: {}
10099
# Extra volume mounts to append to nodeplugin's
@@ -110,7 +109,7 @@ nodeplugin:
110109
singlemount:
111110
image:
112111
repository: registry.cern.ch/kubernetes/cvmfs-csi
113-
tag: v2.3.2
112+
tag: "" # If no tag specified default to Chart AppVersion.
114113
pullPolicy: IfNotPresent
115114
resources: {}
116115
# Extra volume mounts to append to nodeplugin's
@@ -121,7 +120,7 @@ nodeplugin:
121120
registrar:
122121
image:
123122
repository: registry.k8s.io/sig-storage/csi-node-driver-registrar
124-
tag: v2.8.0
123+
tag: v2.10.1
125124
pullPolicy: IfNotPresent
126125
resources: {}
127126

@@ -160,7 +159,6 @@ nodeplugin:
160159
# New CVMFS CSI deployments do not need this. It is only necessary
161160
# when upgrading from v1 of the driver.
162161
serviceAccount:
163-
164162
# Name of the ServiceAccount (to use and/or create).
165163
# If no name is provided, Helm chart will generate one.
166164
serviceAccountName: cvmfs-nodeplugin
@@ -179,7 +177,6 @@ nodeplugin:
179177
# fulfil the role of a reference to CVMFS repositories used inside the CO
180178
# (e.g. Kubernetes), and are not modifying the CVMFS store in any way.
181179
controllerplugin:
182-
183180
# Component name. Used as `component` label value
184181
# and to generate DaemonSet name.
185182
name: controllerplugin
@@ -193,7 +190,7 @@ controllerplugin:
193190
plugin:
194191
image:
195192
repository: registry.cern.ch/kubernetes/cvmfs-csi
196-
tag: v2.3.2
193+
tag: "" # If no tag specified default to Chart AppVersion.
197194
pullPolicy: IfNotPresent
198195
resources: {}
199196
extraVolumeMounts: []
@@ -202,7 +199,7 @@ controllerplugin:
202199
provisioner:
203200
image:
204201
repository: registry.k8s.io/sig-storage/csi-provisioner
205-
tag: v3.5.0
202+
tag: v4.0.1
206203
pullPolicy: IfNotPresent
207204
resources: {}
208205

@@ -229,7 +226,6 @@ controllerplugin:
229226

230227
# ServiceAccount to use with Controller plugin Deployment.
231228
serviceAccount:
232-
233229
# Name of the ServiceAccount (to use and/or create).
234230
# If no name is provided, Helm chart will generate one.
235231
serviceAccountName: ""
@@ -240,7 +236,6 @@ controllerplugin:
240236

241237
# RBAC rules assigned to the ServiceAccount defined above.
242238
rbac:
243-
244239
# Whether to create RBACs in the CVMFS CSI namespace.
245240
# If not, it is expected they are already present.
246241
create: true

0 commit comments

Comments
 (0)