Skip to content

Commit

Permalink
deploy: set plugin image tags from Chart AppVersion (#16)
Browse files Browse the repository at this point in the history
* deploy: plugin image tags default to pull from Chart AppVersion

* fix csi-node-driver-registrar version
  • Loading branch information
1602077 authored Jul 9, 2024
1 parent 55f404b commit ee2e94d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions deployments/helm/eosxd-csi/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: "latest"
appVersion: "v1.4.0"
description: A Helm chart to deploy the eosxd-CSI Plugin
name: eosxd-csi
version: "1.0.0"
version: 1.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
serviceAccount: {{ include "eosxd-csi.serviceAccountName.controllerplugin" . }}
containers:
- name: provisioner
image: {{ .Values.controllerplugin.provisioner.image.repository }}:{{ .Values.controllerplugin.provisioner.image.tag }}
image: {{ .Values.controllerplugin.provisioner.image.repository }}:{{ .Values.controllerplugin.provisioner.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.controllerplugin.provisioner.image.pullPolicy }}
args:
- -v={{ .Values.logVerbosityLevel }}
Expand All @@ -37,7 +37,7 @@ spec:
resources: {{ toYaml . | nindent 12 }}
{{- end }}
- name: controllerplugin
image: {{ .Values.controllerplugin.plugin.image.repository }}:{{ .Values.controllerplugin.plugin.image.tag }}
image: {{ .Values.controllerplugin.plugin.image.repository }}:{{ .Values.controllerplugin.plugin.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.controllerplugin.plugin.image.pullPolicy }}
command: [/csi-driver]
args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
resources: {{ toYaml . | nindent 12 }}
{{- end }}
- name: nodeplugin
image: {{ .Values.nodeplugin.plugin.image.repository }}:{{ .Values.nodeplugin.plugin.image.tag }}
image: {{ .Values.nodeplugin.plugin.image.repository }}:{{ .Values.nodeplugin.plugin.image.tag | default .Chart.AppVersion }}
command: [/csi-driver]
args:
- -v={{ .Values.logVerbosityLevel }}
Expand Down Expand Up @@ -92,7 +92,7 @@ spec:
resources: {{ toYaml . | nindent 12 }}
{{- end }}
- name: automount
image: {{ .Values.nodeplugin.automount.image.repository }}:{{ .Values.nodeplugin.automount.image.tag }}
image: {{ .Values.nodeplugin.automount.image.repository }}:{{ .Values.nodeplugin.automount.image.tag | default .Chart.AppVersion }}
command: [/automount-runner]
args:
- -v={{ .Values.logVerbosityLevel }}
Expand Down Expand Up @@ -121,7 +121,7 @@ spec:
resources: {{ toYaml . | nindent 12 }}
{{- end }}
- name: mountreconciler
image: {{ .Values.nodeplugin.mountreconciler.image.repository }}:{{ .Values.nodeplugin.mountreconciler.image.tag }}
image: {{ .Values.nodeplugin.mountreconciler.image.repository }}:{{ .Values.nodeplugin.mountreconciler.image.tag | default .Chart.AppVersion }}
command: [/mount-reconciler]
args:
- -v={{ .Values.logVerbosityLevel }}
Expand Down
12 changes: 6 additions & 6 deletions deployments/helm/eosxd-csi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ nodeplugin:
plugin:
image:
repository: registry.cern.ch/kubernetes/eosxd-csi
tag: v1.1.1
tag: "" # If no tag specified default to Chart AppVersion.
pullPolicy: IfNotPresent
resources: {}
# Extra volume mounts to append to nodeplugin's
Expand All @@ -205,7 +205,7 @@ nodeplugin:
automount:
image:
repository: registry.cern.ch/kubernetes/eosxd-csi
tag: v1.1.1
tag: "" # If no tag specified default to Chart AppVersion.
pullPolicy: IfNotPresent
resources: {}
# Extra volume mounts to append to nodeplugin's
Expand All @@ -226,7 +226,7 @@ nodeplugin:
mountreconciler:
image:
repository: registry.cern.ch/kubernetes/eosxd-csi
tag: v1.1.1
tag: "" # If no tag specified default to Chart AppVersion.
pullPolicy: IfNotPresent
resources: {}
# Extra volume mounts to append to nodeplugin's
Expand All @@ -239,7 +239,7 @@ nodeplugin:
registrar:
image:
repository: registry.k8s.io/sig-storage/csi-node-driver-registrar
tag: v2.5.1
tag: v2.10.1
pullPolicy: IfNotPresent
resources: {}

Expand Down Expand Up @@ -300,7 +300,7 @@ controllerplugin:
plugin:
image:
repository: registry.cern.ch/kubernetes/eosxd-csi
tag: v1.1.1
tag: "" # If no tag specified default to Chart AppVersion.
pullPolicy: IfNotPresent
resources: {}
extraVolumeMounts:
Expand All @@ -311,7 +311,7 @@ controllerplugin:
provisioner:
image:
repository: k8s.gcr.io/sig-storage/csi-provisioner
tag: v3.2.1
tag: v4.0.1
pullPolicy: IfNotPresent
resources: {}

Expand Down

0 comments on commit ee2e94d

Please sign in to comment.