zfs-localpv/pkg/zfs
Pawan Prakash Sharma fb6f1006da
feat(clone): add support for creating the Clone from volume as datasource (#234)
This PR adds the capability to create the Clone from pvc directly

```
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: pvc-clone
spec:
  storageClassName: openebs-snap
  dataSource:
    name: pvc-snap
    kind: PersistentVolumeClaim
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 4Gi
```
The ZFS_LocalPV driver will create one internal snapshot of the name
same as the new volume name and will create a clone out of it. Also,
while destroying the volume the driver will take care of deleting
the created snapshot for the clone.

Signed-off-by: Pawan <pawan@mayadata.io>
2020-11-11 18:58:25 +05:30
..
btrfs_util.go feat(zfspv) Add golint check to travis (#175) 2020-07-07 18:21:02 +05:30
mount.go chore(refactor): Remove MountInfo struct from api (#225) 2020-10-12 10:59:23 +05:30
resize.go feat(zfspv): move to klog (#166) 2020-06-29 12:18:33 +05:30
volume.go feat(clone): add support for creating the Clone from volume as datasource (#234) 2020-11-11 18:58:25 +05:30
xfs_util.go fix(xfs, uuid): fixed uuid generation issue when mount fails 2020-07-22 23:07:16 +05:30
zfs_util.go feat(clone): add support for creating the Clone from volume as datasource (#234) 2020-11-11 18:58:25 +05:30