Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csi: support for VolumeContext and VolumeParameters #7957

Merged
merged 3 commits into from
May 15, 2020

Conversation

tgross
Copy link
Member

@tgross tgross commented May 14, 2020

Fixes #7670 and #7771

For reviewability, I've split out doc updates into their own commit as well as another minor refactoring for collecting arguments to ControllerValidateCapabilities into an args struct. So best reviewed commit-by-commit.

@tgross tgross added this to the 0.11.3 milestone May 14, 2020
@tgross tgross force-pushed the csi_volume_params_and_context branch 4 times, most recently from 4348486 to 1a64ae9 Compare May 14, 2020 14:47
@tgross tgross force-pushed the csi_volume_params_and_context branch 2 times, most recently from 2a65dad to 3d665e8 Compare May 14, 2020 15:50
tgross added 3 commits May 14, 2020 11:56
The CSI plugin `ControllerValidateCapabilities` struct that we turn
into a CSI RPC is accumulating arguments, so moving it into a request
struct will reduce the churn of this internal API, make the plugin
code more readable, and make this method consistent with the other
plugin methods in that package.
@tgross tgross force-pushed the csi_volume_params_and_context branch from 3d665e8 to d03f348 Compare May 14, 2020 15:57
@tgross tgross requested review from langmartin and lgfa29 May 14, 2020 15:58
@tgross tgross marked this pull request as ready for review May 14, 2020 15:59
Copy link
Contributor

@langmartin langmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tgross tgross merged commit 103d873 into master May 15, 2020
@tgross tgross deleted the csi_volume_params_and_context branch May 15, 2020 12:16
tgross added a commit that referenced this pull request May 27, 2020
The MVP for CSI in the 0.11.0 release of Nomad did not include support
for opaque volume parameters or volume context. This changeset adds
support for both.

This also moves args for ControllerValidateCapabilities into a struct.
The CSI plugin `ControllerValidateCapabilities` struct that we turn
into a CSI RPC is accumulating arguments, so moving it into a request
struct will reduce the churn of this internal API, make the plugin
code more readable, and make this method consistent with the other
plugin methods in that package.
@tgross
Copy link
Member Author

tgross commented May 27, 2020

Cherry-picked to 0.11.3 as 42600af

tgross added a commit that referenced this pull request Jun 22, 2020
In #7957 we added support for passing a volume context to the controller RPCs.
This is an opaque map that's created by `CreateVolume` or, in Nomad's case,
in the volume registration spec.

However, we missed passing this field to the `NodeStage` and `NodePublish` RPC,
which prevents certain plugins (such as MooseFS) from making node RPCs.
tgross added a commit that referenced this pull request Jun 22, 2020
In #7957 we added support for passing a volume context to the controller RPCs.
This is an opaque map that's created by `CreateVolume` or, in Nomad's case,
in the volume registration spec.

However, we missed passing this field to the `NodeStage` and `NodePublish` RPC,
which prevents certain plugins (such as MooseFS) from making node RPCs.
@github-actions
Copy link

github-actions bot commented Jan 4, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSI: support opaque CreateVolume parameters
3 participants