ceph-csi/internal
Niels de Vos ac8cda5e37 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>
2025-02-20 10:14:29 +00:00
..
cephfs journal: pass groupUUID to be used for omap name reserve 2025-01-28 17:19:32 +00:00
controller rbd: controller to regenerate volume group omap data 2025-01-28 17:19:32 +00:00
csi-addons cleanup: move ErrImageNotFound from rbd/errors to util/errors 2025-02-17 13:33:21 +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: pass groupUUID to be used for omap name reserve 2025-01-28 17:19:32 +00:00
kms ci: address return value is not checked (errcheck) 2025-01-08 11:56:24 +00:00
liveness ci: non-constant format string (govet) 2025-01-08 11:56:24 +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-20 10:14:29 +00:00
util cleanup: move ShouldRetryVolumeGeneration from internal/rbd to internal/util 2025-02-17 13:33:21 +00:00