|
25 | 25 |
|
26 | 26 | # Defaults |
27 | 27 | 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 |
29 | 29 | EXTERNAL_SNAPSHOTTER_VERSION=v8.2.0 |
30 | 30 | EXTERNAL_PROVISIONER_VERSION=v5.2.0 |
31 | 31 | EXTERNAL_RESIZER_VERSION=v1.13.1 |
@@ -297,11 +297,18 @@ deploy_csi_host_path() { |
297 | 297 | kubectl apply -f "${CSI_BASE_URL}"/external-resizer/"${EXTERNAL_RESIZER_VERSION}"/deploy/kubernetes/rbac.yaml |
298 | 298 |
|
299 | 299 | ## 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}" |
302 | 309 |
|
303 | 310 | ## 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 |
305 | 312 |
|
306 | 313 | ## Prevent VolumeSnapshot E2e test to fail when taking a |
307 | 314 | ## snapshot of a running PostgreSQL instance |
|
0 commit comments