From 2a3cb4eeeacb962407899f7e473b8a7515bc2e0d Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Tue, 8 Oct 2024 12:09:45 +0800 Subject: [PATCH 1/2] charts: support host StorageClass config on helm chart Signed-off-by: Vicente Cheng --- charts/harvester-csi-driver/templates/daemonset.yaml | 3 +++ charts/harvester-csi-driver/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/harvester-csi-driver/templates/daemonset.yaml b/charts/harvester-csi-driver/templates/daemonset.yaml index e995ee65..6ccb3203 100644 --- a/charts/harvester-csi-driver/templates/daemonset.yaml +++ b/charts/harvester-csi-driver/templates/daemonset.yaml @@ -46,6 +46,9 @@ spec: - --nodeid=$(NODE_ID) - --endpoint=$(CSI_ENDPOINT) - --kubeconfig=/var/lib/harvester/cloud-provider-config + {{- if .Values.hostStorageClass }} + - --host-storage-class={{ .Values.hostStorageClass }} + {{- end }} env: - name: NODE_ID valueFrom: diff --git a/charts/harvester-csi-driver/values.yaml b/charts/harvester-csi-driver/values.yaml index f339092c..b08d678e 100644 --- a/charts/harvester-csi-driver/values.yaml +++ b/charts/harvester-csi-driver/values.yaml @@ -26,6 +26,8 @@ image: nameOverride: "" fullnameOverride: "" +# This field can be used to specify the corresponding StorageClass on the host cluster. +hostStorageClass: "" kubeletRootDir: /var/lib/kubelet cloudConfig: secretName: "" From 294b1ebb01df940c010a734b34e8acee6c57df25 Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Tue, 8 Oct 2024 12:12:02 +0800 Subject: [PATCH 2/2] charts: bump harvester-csi-driver v0.1.19 - Also, bump image to v0.2.0 Signed-off-by: Vicente Cheng --- charts/harvester-csi-driver/Chart.yaml | 4 ++-- charts/harvester-csi-driver/values.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/harvester-csi-driver/Chart.yaml b/charts/harvester-csi-driver/Chart.yaml index bc495e61..5545ff4a 100644 --- a/charts/harvester-csi-driver/Chart.yaml +++ b/charts/harvester-csi-driver/Chart.yaml @@ -18,12 +18,12 @@ keywords: # 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.1.18 +version: 0.1.19 # 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.1.7 +appVersion: "v0.2.0" maintainers: - name: harvester diff --git a/charts/harvester-csi-driver/values.yaml b/charts/harvester-csi-driver/values.yaml index b08d678e..bfc2dbf9 100644 --- a/charts/harvester-csi-driver/values.yaml +++ b/charts/harvester-csi-driver/values.yaml @@ -7,7 +7,7 @@ image: csiDriver: repository: rancher/harvester-csi-driver # Overrides the image tag whose default is the chart appVersion. - tag: "v0.1.7" + tag: "v0.2.0" csi: nodeDriverRegistrar: repository: rancher/mirrored-longhornio-csi-node-driver-registrar