In #375, the spec was changed to allow plugins to return OK during ControllerPublishVolume if a volume is not found, thereby solving #373. A similar situation can arise for NodeUnpublishVolume when, say, a previously mounted volume has already been unmounted out-of-band, and the plugin decides that there simply is no more work to do. For such cases, it should not be okay to return OK from NodeUnpublishVolume as well.
I propose we carry over the corresponding amendments done in the context of ControllerPublishVolume to NodeUnpublishVolume. I'd be happy to carry out the spec update if this request finds consent.
This issue was motivated by a discussion that happened on kubernetes-csi/csi-test#258.
In #375, the spec was changed to allow plugins to return OK during
ControllerPublishVolume
if a volume is not found, thereby solving #373. A similar situation can arise forNodeUnpublishVolume
when, say, a previously mounted volume has already been unmounted out-of-band, and the plugin decides that there simply is no more work to do. For such cases, it should not be okay to return OK fromNodeUnpublishVolume
as well.I propose we carry over the corresponding amendments done in the context of
ControllerPublishVolume
toNodeUnpublishVolume
. I'd be happy to carry out the spec update if this request finds consent.This issue was motivated by a discussion that happened on kubernetes-csi/csi-test#258.
/cc @pohly @msau42 @jsafrane @maennchen