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/teardown.sh b/local-path-storage/teardown.sh
index 75c6e9e..6a75f50 100644
--- a/local-path-storage/teardown.sh
+++ b/local-path-storage/teardown.sh
@@ -3,6 +3,7 @@
# namespace; see setup.sh.
set -eu
+absolutePath=${VOL_DIR:-}
while getopts "m:s:p:" opt
do
case $opt in
@@ -17,5 +18,6 @@
;;
esac
done
+[ -n "$absolutePath" ] || { echo "teardown: no volume path given" >&2; exit 1; }
nsenter -t 1 -m -- zfs set mountpoint=none "rpool${absolutePath}"