ceph-csi/internal
Rakshith R 6a4a38869c rbd: consolidate snapshot flatten logic in PrepareVolumeForSnapshot()
This commit consolidates flatten logic checks for cloneDepth
and snapshotLimit in PrepareVolumeForSnapshot. This allows
the function to be called for both CreateSnapshot and
CreateVolumeGroupSnapshot.
Clone Depth check and flattening of grand parent image
now occurs before creation of snapshot starts.
This aligns better with how PVC-PVC clone and
PVC-restore process occurs currently.
Flattening the grandparent image once prevents
flattening of every newly created snapshot.
Snapshot in above para refers to k8s VolumeSnapshot
(which is backed by a rbd image).

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 9936033283)
2024-12-18 13:22:20 +00:00
..
cephfs cephfs: remove extraneous creation of credentials 2024-11-27 14:37:51 +00:00
controller util: use protobuf encoding for core k8s apis 2024-09-26 11:52:21 +00:00
csi-addons rbd: parse IP address 2024-11-06 09:48:45 +00:00
csi-common util: added logs for slow gRPC calls 2024-09-20 08:55:17 +00:00
health-checker doc: fix codespell problem 2024-09-04 10:13:47 +00:00
journal journal: store csi.groupid for snapshots 2024-11-06 11:37:44 +00:00
kms rbd: implement pv key rotation 2024-07-19 13:26:28 +00:00
liveness build: passing context parameter as required 2024-06-28 08:38:54 +00:00
nfs util: added logs for slow gRPC calls 2024-09-20 08:55:17 +00:00
rbd rbd: consolidate snapshot flatten logic in PrepareVolumeForSnapshot() 2024-12-18 13:22:20 +00:00
util rbd: take lock on targetpath during node operation 2024-11-21 10:18:56 +00:00