feat(helm): Allow specifying path to zfs binary (#383)

* Allow specifying path to zfs binary

Some linux/UNIX distributions, do not follow standard path conventions. The driver currently assumes the zfs binary is in /sbin or /usr/sbin, but on NixOS, for example, it's in /run/current-system/sw/bin.

This adds an option to specify the directory manually.

* Bump chart version


Signed-off-by: Travis Athougies <travis@athougies.net>
This commit is contained in:
Travis Athougies 2021-09-15 05:53:50 -07:00 committed by GitHub
parent 5ebd8a7c18
commit 95428184cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -13,5 +13,5 @@ data:
elif [ -x /host/usr/sbin/zfs ]; then
chroot /host /usr/sbin/zfs "$@"
else
chroot /host zfs "$@"
chroot /host "{{ .Values.zfs.bin }}" "$@"
fi