-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(clone): add support for creating the Clone from volume as dataso…
…urce (#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>
- Loading branch information
1 parent
e52d6c7
commit fb6f100
Showing
4 changed files
with
98 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add support for creating the Clone from volume as datasource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters