Skip to content

Make NodeID required where needed#125

Merged
codenrhoden merged 1 commit into
rexray:masterfrom
codenrhoden:node_id_required
Jun 21, 2019
Merged

Make NodeID required where needed#125
codenrhoden merged 1 commit into
rexray:masterfrom
codenrhoden:node_id_required

Conversation

@codenrhoden

Copy link
Copy Markdown
Member

This patch removes the spec validator option for requiring NodeID, as
the current CSI spec makes it explicitly required for both the
NodeGetInfoResponse and the ControllerPublishVolumeRequest, so there is
no point in having a option to enable this -- we should always check for
it.

Furthermore, NodeID is actually optional for the
ControllerUnpublishVolumeRequest, and when the NodeID is blank in that
scenario the controller is supposed to unplish the volume from all
nodes. So this patch updates the mock driver to have that behavior and
adds tests to verify it.

This patch removes the spec validator  option for requiring NodeID, as
the current CSI spec makes it explicitly required for both the
NodeGetInfoResponse and the ControllerPublishVolumeRequest, so there is
no point in having a option to enable this -- we should always check for
it.

Furthermore, NodeID is actually optional for the
ControllerUnpublishVolumeRequest, and when the NodeID is blank in that
scenario the controller is supposed to unplish the volume from all
nodes. So this patch updates the mock driver to have that behavior and
adds tests to verify it.
@codenrhoden codenrhoden merged commit 3e243d0 into rexray:master Jun 21, 2019
@codenrhoden codenrhoden deleted the node_id_required branch June 21, 2019 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant