ceph-csi/internal/rbd
Mohammed Naser 671d6a7767 rbd: Backout if image features is empty
In golang world, if you split an empty string that does not contain
the seperator, you get an array with one empty string.  This results
in volumes failing to mount with "invalid feature " (note extra space
because it's trying to check if 'empty string' is a valid feature).

This patch checks if the string is empty, and if so, it just decides
to skip the entire validation and returning nothing.

Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
2021-06-10 15:43:09 +00:00
..
clone.go cleanup: release resources for rbdImages objects after use 2021-04-14 03:59:28 +00:00
controllerserver_test.go rbd: repair thick-provisioned images on CreateVolume restart 2021-06-01 14:42:12 +00:00
controllerserver.go rbd: fail fast in create volume for missmatch encryption 2021-06-07 15:05:21 +00:00
driver.go util: enable golang profiling 2021-05-25 10:41:22 +00:00
encryption.go cleanup: remove unnecessary calling of .String() when logging 2021-05-25 18:02:11 +00:00
errors.go rbd: correct the code comment for ErrFlattenInProgress 2020-10-20 08:59:25 +00:00
identityserver.go cleanup: address godot warnings 2020-07-21 08:36:24 +00:00
mirror.go cleanup: remove unnecessary calling of .String() when logging 2021-05-25 18:02:11 +00:00
nodeserver_test.go cleanup: Remove support for Delete and Unmounting v1.1.0 PVC 2020-07-10 16:07:13 +00:00
nodeserver.go rbd: add support for block-devices in NodeGetVolumeStats() 2021-05-25 06:41:04 +00:00
rbd_attach.go cleanup: remove unnecessary calling of .String() when logging 2021-05-25 18:02:11 +00:00
rbd_journal.go cleanup: address ifshort linter issues 2021-05-26 07:04:32 +00:00
rbd_util_test.go rbd: Add failing test when no features are provided 2021-06-10 15:43:09 +00:00
rbd_util.go rbd: Backout if image features is empty 2021-06-10 15:43:09 +00:00
replicationcontrollerserver.go rbd: mark image ready when image state is up+unknown 2021-05-05 13:38:29 +00:00
snapshot.go rbd: delete encryption key from KMS 2021-04-30 08:05:47 +00:00