Skip to content

Commit

Permalink
Update csi-cloning prerequisites (#3325)
Browse files Browse the repository at this point in the history
The CSI clone supports cross storage classes now. See kubernetes-csi/external-provisioner#699

The limitation in CDI was removed in https://github.com/kubevirt/containerized-data-importer/pull/2750/files#diff-6a637cfe899a0436fa6e24865f2b9259f9b8504e40e080e03603830a5504a0c9L754

Signed-off-by: halfcrazy <hackzhuyan@gmail.com>
  • Loading branch information
halfcrazy authored Jun 20, 2024
1 parent b2e51ee commit 301f0ab
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions doc/csi-cloning.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ See [volume-cloning](https://kubernetes-csi.github.io/docs/volume-cloning.html)
### Prerequisites
1) The csi driver backing the storage class of the PVC supports volume cloning, and corresponding StorageProfile has
the cloneStrategy set to CSI Volume Cloning (see [here](./csi-cloning.md#Prerequisites) for more details)
2) The source and target PVC share the same Storage Class (see [here](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class) for details)
3) The source and target PVC share the same Volume Mode (see [here](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#volume-mode) for details)
4) The user creating the DataVolume has permission to create the `datavolumes/source` resource in the source namespace
5) The source volume is not in use
2) The source and target PVC share the same Volume Mode (see [here](https://kubernetes.io/docs/concepts/storage/volume-pvc-datasource/#introduction) for details)
3) The user creating the DataVolume has permission to create the `datavolumes/source` resource in the source namespace
4) The source volume is not in use

### Flow Description
- DataVolume is created with a PVC source
Expand All @@ -24,4 +23,4 @@ See [volume-cloning](https://kubernetes-csi.github.io/docs/volume-cloning.html)
* Create the PVC
* Set the claim reference of the PV to point to the new target PVC
- If CSI Volume Cloning is not possible:
* Attempt Host Assisted Cloning [host-assisted cloning](./clone-datavolume.md)
* Attempt Host Assisted Cloning [host-assisted cloning](./clone-datavolume.md)

0 comments on commit 301f0ab

Please sign in to comment.