mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
17 lines
456 B
YAML
17 lines
456 B
YAML
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 zfs "$@"
|
|
fi
|