What this PR does / why we need it:
https://github.com/yunify/qingcloud-csi/pull/195 adds support for block volume.
In the ControllerExpandVolume interface response, node expansion is required only when the volume mode is not block, which means the req.GetVolumeCapability().GetBlock() is nil. But this check is incorrectly set to the opposite.
Signed-off-by: dkeven keven@kubesphere.io
What type of PR is this? /kind bug
What this PR does / why we need it: https://github.com/yunify/qingcloud-csi/pull/195 adds support for block volume. In the
ControllerExpandVolume
interface response, node expansion is required only when the volume mode is not block, which means thereq.GetVolumeCapability().GetBlock()
isnil
. But this check is incorrectly set to the opposite.