Initial commit
This commit is contained in:
17
charts/zfs-localpv/templates/configmap.yaml
Normal file
17
charts/zfs-localpv/templates/configmap.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: openebs-zfspv-bin
|
||||
namespace: {{ .Release.Namespace }} # should be the same namespace where it is getting mounted
|
||||
labels:
|
||||
{{- include "zfslocalpv.zfsNode.labels" . | nindent 4 }}
|
||||
data:
|
||||
zfs: |
|
||||
#!/bin/sh
|
||||
if [ -x /host/sbin/zfs ]; then
|
||||
chroot /host /sbin/zfs "$@"
|
||||
elif [ -x /host/usr/sbin/zfs ]; then
|
||||
chroot /host /usr/sbin/zfs "$@"
|
||||
else
|
||||
chroot /host "{{ .Values.zfs.bin }}" "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user