Skip to content

Commit

Permalink
fix(cdi): change clone strategy fot sds provisioners
Browse files Browse the repository at this point in the history
Signed-off-by: Isteb4k <[email protected]>
  • Loading branch information
Isteb4k committed Dec 13, 2024
1 parent 03783e5 commit 7b9653a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions images/cdi-artifact/patches/019-optimize-csi-clone.patch
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ index cbaff4c0d..e66a708cd 100644
cc.AddAnnotation(desiredClaim, cc.AnnPopulatorKind, cdiv1.VolumeCloneSourceRef)
if p.OwnershipLabel != "" {
diff --git a/pkg/storagecapabilities/storagecapabilities.go b/pkg/storagecapabilities/storagecapabilities.go
index 11862364e..1d4fb97f2 100644
index 11862364e..5a0379566 100644
--- a/pkg/storagecapabilities/storagecapabilities.go
+++ b/pkg/storagecapabilities/storagecapabilities.go
@@ -144,6 +144,7 @@ var CloneStrategyByProvisionerKey = map[string]cdiv1.CDICloneStrategy{
@@ -144,6 +144,9 @@ var CloneStrategyByProvisionerKey = map[string]cdiv1.CDICloneStrategy{
"hspc.csi.hitachi.com": cdiv1.CloneStrategyCsiClone,
"csi.hpe.com": cdiv1.CloneStrategyCsiClone,
"spectrumscale.csi.ibm.com": cdiv1.CloneStrategyCsiClone,
+ "rbd.csi.ceph.com": cdiv1.CloneStrategyCsiClone,
+ "local.csi.storage.deckhouse.io": cdiv1.CloneStrategyCsiClone,
+ "replicated.csi.storage.deckhouse.io": cdiv1.CloneStrategyCsiClone,
"rook-ceph.rbd.csi.ceph.com": cdiv1.CloneStrategyCsiClone,
"openshift-storage.rbd.csi.ceph.com": cdiv1.CloneStrategyCsiClone,
"cephfs.csi.ceph.com": cdiv1.CloneStrategyCsiClone,
2 changes: 1 addition & 1 deletion images/cdi-artifact/patches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ Currently covered metrics:

#### `019-optimize-csi-clone.patch`

Cloning PVC to PVC for provisioner `rbd.csi.ceph.com` now works via csi-clone instead of snapshot.
Cloning PVC to PVC for provisioners `rbd.csi.ceph.com`, `local.csi.storage.deckhouse.io` and `replicated.csi.storage.deckhouse.io` now works via csi-clone instead of snapshot.
With csi-clone, it's possible to specify the same or a larger capacity for the target pvc immediately, with no need to postpone resizing.

0 comments on commit 7b9653a

Please sign in to comment.