local-path-storage: Update provisioner to v0.0.37.
Rebase the manifest on upstream v0.0.37: health probes, a namespaced
Role for helper pods, and narrower cluster RBAC. The provisioner now
passes the volume path as $VOL_DIR instead of -p, so setup.sh and
teardown.sh accept both. Allow the hostPID helper pod template, which
v0.0.37 otherwise rejects; the ZFS hook needs it for nsenter.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: Ib8a64ac42caa0a8369c49393aa242f40116b1680
diff --git a/local-path-storage/setup.sh b/local-path-storage/setup.sh
index aff8c0c..4653e9f 100644
--- a/local-path-storage/setup.sh
+++ b/local-path-storage/setup.sh
@@ -5,8 +5,12 @@
# mount the dataset only inside the container's own mount namespace; the
# workload would then write into the parent dataset, and the child dataset
# would shadow that data after the next host reboot.
+#
+# The provisioner passes the volume path as $VOL_DIR (v0.0.2x and later);
+# older versions passed it as -p.
set -eu
+absolutePath=${VOL_DIR:-}
while getopts "m:s:p:" opt
do
case $opt in
@@ -21,6 +25,7 @@
;;
esac
done
+[ -n "$absolutePath" ] || { echo "setup: no volume path given" >&2; exit 1; }
host() { nsenter -t 1 -m -- "$@"; }