Skip to content

Commit 1fe88bc

Browse files
committed
test: update csi-driver-host-path to v1.16.1
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
1 parent 2945f81 commit 1fe88bc

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

hack/setup-cluster.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fi
2525

2626
# Defaults
2727
KIND_NODE_DEFAULT_VERSION=v1.32.3
28-
CSI_DRIVER_HOST_PATH_DEFAULT_VERSION=v1.15.0
28+
CSI_DRIVER_HOST_PATH_DEFAULT_VERSION=v1.16.1
2929
EXTERNAL_SNAPSHOTTER_VERSION=v8.2.0
3030
EXTERNAL_PROVISIONER_VERSION=v5.2.0
3131
EXTERNAL_RESIZER_VERSION=v1.13.1
@@ -297,11 +297,18 @@ deploy_csi_host_path() {
297297
kubectl apply -f "${CSI_BASE_URL}"/external-resizer/"${EXTERNAL_RESIZER_VERSION}"/deploy/kubernetes/rbac.yaml
298298

299299
## Install driver and plugin
300-
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/deploy/kubernetes-1.27/hostpath/csi-hostpath-driverinfo.yaml
301-
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/deploy/kubernetes-1.27/hostpath/csi-hostpath-plugin.yaml
300+
## Create a temporary file for the modified plugin deployment. This is needed
301+
## because csi-driver-host-path plugin yaml tends to lag behind a few versions.
302+
plugin_file="${TEMP_DIR}/csi-hostpath-plugin.yaml"
303+
curl -sSL "${CSI_BASE_URL}/csi-driver-host-path/${CSI_DRIVER_HOST_PATH_VERSION}/deploy/kubernetes-1.30/hostpath/csi-hostpath-plugin.yaml" |
304+
sed "s|k8s.gcr.io/sig-storage/hostpathplugin:.*|registry.k8s.io/sig-storage/hostpathplugin:${CSI_DRIVER_HOST_PATH_VERSION}|g" > "${plugin_file}"
305+
306+
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/deploy/kubernetes-1.30/hostpath/csi-hostpath-driverinfo.yaml
307+
kubectl apply -f "${plugin_file}"
308+
rm "${plugin_file}"
302309

303310
## create volumesnapshotclass
304-
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/deploy/kubernetes-1.27/hostpath/csi-hostpath-snapshotclass.yaml
311+
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/deploy/kubernetes-1.30/hostpath/csi-hostpath-snapshotclass.yaml
305312

306313
## Prevent VolumeSnapshot E2e test to fail when taking a
307314
## snapshot of a running PostgreSQL instance

0 commit comments

Comments
 (0)