Skip to content

csi: use publish_info for storing and accessing the volume name #99

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

Merged
merged 1 commit into from
Nov 9, 2018
Merged

csi: use publish_info for storing and accessing the volume name #99

merged 1 commit into from
Nov 9, 2018

Conversation

joonas
Copy link
Contributor

@joonas joonas commented Nov 9, 2018

After tracing through a bunch of the CSI code, I came to the conclusion that this could be a viable strategy for doing away with the need for the nodes to call the API to fetch the volume name.

Super open to feedback here, I've verified that this does indeed work by running the integration test suite against a cluster with my custom build deployed on it for CSI.

This does away with the need for the nodes to call the API to fetch the
volume name, when it can be stored in the Status.AttachmentMetadata of
the VolumeAttachment object.
@fatih
Copy link
Contributor

fatih commented Nov 9, 2018

This looks good @joonas. Seems like I totally forgot that the response has something like this. There are couple of improvements we can make, such as using "dobs.csi.digitalocean.com" as a prefix (CSI uses a forward domain notation now instead reverse) and adding a comment to the PublishInfoVolumeName. I'll merge and make the changes myself, and also update the changelog with the changes. I make sure to test it as well.

@fatih fatih merged commit 1858aa9 into digitalocean:master Nov 9, 2018
davidhalter pushed a commit to cloudscale-ch/csi-cloudscale that referenced this pull request Nov 15, 2018
This used to be the commit message below from
digitalocean/csi-digitalocean#99:

csi: use publish_info for storing and accessing the volume name

This does away with the need for the nodes to call the API to fetch the
volume name, when it can be stored in the Status.AttachmentMetadata of
the VolumeAttachment object.
@joonas joonas deleted the joonas/use-publish_info-for-volume-name branch November 20, 2018 21:52
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.

2 participants