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

@ -1,7 +1,7 @@
apiVersion: v2
name: zfs-localpv
description: Helm chart for CSI Driver for dynamic provisioning of ZFS Persistent Local Volumes. For instructions on how to use this helm chart, see - https://openebs.github.io/zfs-localpv/
version: 1.9.5
version: 1.9.6
appVersion: 1.9.1
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
home: http://www.openebs.io/

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

View file

@ -156,3 +156,7 @@ serviceAccount:
analytics:
enabled: true
zfs:
# If you use a non-standard path to the zfs binary, specify it here
# bin: /run/current-system/sw/bin/zfs
bin: zfs