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

Support ClusterVolumeSpec in the create_volume api #3254

Open
jonaslb opened this issue Apr 26, 2024 · 0 comments
Open

Support ClusterVolumeSpec in the create_volume api #3254

jonaslb opened this issue Apr 26, 2024 · 0 comments

Comments

@jonaslb
Copy link

jonaslb commented Apr 26, 2024

Docker's VolumeCreate API takes a ClusterVolumeSpec parameter that it'd be nice to be able to use.

Most commonly, ClusterVolumeSpec.AccessMode.{Scope,Sharing} will need to be set and the Docker CLI also has arguments to set these. But probably the whole ClusterVolumeSpec should be exposed in Python. For example in my case, I'd like to be able to set ClusterVolumeSpec.AccessMode.MountVolume.MountFlags (and I turned to the Python API because I could find no way to do this with the CLI...).

Currently the only workaround I'm aware of is to use the API directly instead of using the otherwise nice Python API.

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

No branches or pull requests

1 participant