ceph-csi/internal
Mohammed Naser 6b86391bb2 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>
(cherry picked from commit 671d6a7767)
2021-06-10 17:04:13 +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 rbd: Backout if image features is empty 2021-06-10 17:04:13 +00:00
util logging: report issues in rbdImage.DEKStore API with stacks 2021-04-14 03:59:28 +00:00