ceph-csi/internal
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
..
cephfs cephfs: return internal server error 2021-06-07 07:38:48 +00:00
controller cleanup: various source code comment corrections 2021-04-16 10:22:35 +00:00
csi-common util: return actual error from IsMountPoint 2021-06-07 07:38: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 rbd: Backout if image features is empty 2021-06-10 15:43:09 +00:00
util util: return actual error from IsMountPoint 2021-06-07 07:38:48 +00:00