From 323f510466cc5317395e5807061a724347c7ba8c Mon Sep 17 00:00:00 2001 From: vadasambar Date: Tue, 7 Nov 2023 18:26:52 +0530 Subject: [PATCH 1/2] fix: remove node driver registrar lifecycle hook - was causing `/bin/sh not found` error - new node driver registrar version automatically removes the socket before terminating --- charts/warm-metal-csi-driver/templates/daemon-set.yaml | 7 ------- charts/warm-metal-csi-driver/values.yaml | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/charts/warm-metal-csi-driver/templates/daemon-set.yaml b/charts/warm-metal-csi-driver/templates/daemon-set.yaml index 49beeeb..d7a823d 100644 --- a/charts/warm-metal-csi-driver/templates/daemon-set.yaml +++ b/charts/warm-metal-csi-driver/templates/daemon-set.yaml @@ -25,13 +25,6 @@ spec: fieldPath: spec.nodeName image: {{ .Values.csiNodeDriverRegistrar.image.repository }}:{{ .Values.csiNodeDriverRegistrar.image.tag }} imagePullPolicy: IfNotPresent - lifecycle: - preStop: - exec: - command: - - /bin/sh - - -c - - rm -rf /registration/csi-image.warm-metal.tech /registration/csi-image.warm-metal.tech-reg.sock name: node-driver-registrar resources: {} volumeMounts: diff --git a/charts/warm-metal-csi-driver/values.yaml b/charts/warm-metal-csi-driver/values.yaml index dec5651..40c3045 100644 --- a/charts/warm-metal-csi-driver/values.yaml +++ b/charts/warm-metal-csi-driver/values.yaml @@ -9,5 +9,5 @@ image: repository: docker.io/warmmetal/csi-image csiNodeDriverRegistrar: image: - tag: v1.1.0 - repository: quay.io/k8scsi/csi-node-driver-registrar + tag: v2.8.0 + repository: registry.k8s.io/sig-storage/csi-node-driver-registrar From bf8c452ea8931ad90800e7bfc68f142046a63c37 Mon Sep 17 00:00:00 2001 From: vadasambar Date: Tue, 7 Nov 2023 18:30:04 +0530 Subject: [PATCH 2/2] chore: update `appVersion` and `version` in chart to `0.6.4` --- charts/warm-metal-csi-driver/Chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/warm-metal-csi-driver/Chart.yaml b/charts/warm-metal-csi-driver/Chart.yaml index f232af1..1c81175 100644 --- a/charts/warm-metal-csi-driver/Chart.yaml +++ b/charts/warm-metal-csi-driver/Chart.yaml @@ -15,9 +15,9 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.5.0 +version: 0.6.4 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. -appVersion: v0.6.3 +appVersion: v0.6.4