ceph-csi/internal
Niels de Vos 52433841b4 cleanup: move copyEncryptionConfig() from CreateVolume to Exists()
The rbdVolume that needs its encryption configured is constructed in the
Exists() method. It is suitable to move the copyEncryptionConfig() call
there as well, so that the object is completely constructed in a single
place.

Golang-ci:gocyclo complained about the increased complexity of the
Exists() function. Moving the repairing of the ImageID into its own
helper function makes the code a little easier to understand.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2021-04-14 03:59:28 +00:00
..
cephfs cleanup: correct nolint directive listing format 2021-04-09 07:24:47 +00:00
controller rbd: take lock when reconciling the PV 2021-04-07 11:46:27 +00:00
csi-common util: add nil check to default ControllerGetCapabilities() 2021-04-09 10:12:48 +00:00
journal rbd: store csi.storage.k8s.io/pvc/namespace metadata as Owner 2020-12-09 13:58:48 +00:00
liveness util: replace klog with util logger in liveness.go 2020-08-19 14:38:12 +00:00
rbd cleanup: move copyEncryptionConfig() from CreateVolume to Exists() 2021-04-14 03:59:28 +00:00
util util: add VolumeEncryption.StoreCryptoPassphrase() 2021-04-14 03:59:28 +00:00