ceph-csi/internal
Niels de Vos 63d64a8558 rbd: add validation to ToCSI() for rbdVolume and rbdSnapshot
After an unfortnate timed restart of the provisioner, a volume that got
cloned did not get a `rbdVolume.VolID` set. The `.VolID` is used as the
CSI Volume Handle, and is a required attribute.

The `rbdVolume` and `rbdSnapshot` structs have a `.ToCSI()` function
that can do the validation of required attributes. This is now added,
including unit-tests.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
(cherry picked from commit ac8cda5e37)
2025-02-21 11:30:08 +00:00
..
cephfs util: return correct status code for VolumeGroupSnapshot 2024-12-20 09:12:38 +00:00
controller util: use protobuf encoding for core k8s apis 2024-09-26 11:52:21 +00:00
csi-addons rbd: add check to getVolumeReplicationInfo 2025-01-15 04:00:02 +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: add validation to ToCSI() for rbdVolume and rbdSnapshot 2025-02-21 11:30:08 +00:00
util rbd: take lock on targetpath during node operation 2024-11-21 10:18:56 +00:00