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

[feature-volumes] Use PluginGetter instead of Cluster CSIConfig #3016

Merged
merged 3 commits into from
Jul 6, 2021

Conversation

dperny
Copy link
Collaborator

@dperny dperny commented Jun 29, 2021

Converts the manager portion of the CSI code to use the Docker PluginGetter interface, instead of the CSIConfig object.

Converts the agent to get its plugins from the PluginGetter, rather than getting them from the manager. Also removes the dispatcher sending updates about CSI node plugins.

Removes various CSI plugin configuration fields from the API protocol buffers. Since we'll be using the plugingetter, these are no longer necessary.

When publishing volumes, uses a propagated mount location, and resolves that location when getting the volume.

Converts the manager portion of the CSI code to use the Docker
`PluginGetter` interface, instead of the CSIConfig object.

Converts the agent to get its plugins from the PluginGetter, rather than
getting them from the manager. Also removes the dispatcher sending
updates about CSI node plugins.

Removes various CSI plugin configuration fields from the API protocol
buffers. Since we'll be using the plugingetter, these are no longer
necessary.

When publishing volumes, uses a propagated mount location, and resolves
that location when getting the volume.

Signed-off-by: Drew Erny <[email protected]>
@dperny dperny force-pushed the feature-volumes-managed-plugin branch from afb7028 to d0176b4 Compare June 30, 2021 17:28
dperny added 2 commits June 30, 2021 12:03
Both the agent and manager of swarmkit's CSI components need a fake
PluginGetter object for testing. This splits that common fake into its
own object in the testutils package.

Signed-off-by: Drew Erny <[email protected]>
Removing the CSIConfig object from the cluster requires changes to other
tests.

Signed-off-by: Drew Erny <[email protected]>
@dperny dperny force-pushed the feature-volumes-managed-plugin branch from 524613e to cca3615 Compare July 1, 2021 18:56
@dperny dperny merged commit 2295a13 into moby:feature-volumes Jul 6, 2021
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