-
Notifications
You must be signed in to change notification settings - Fork 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
feat: Support VOLUME_MOUNT_GROUP
Capability
#377
Comments
Setting the group ownership is part of the We do not yet support this capability. |
Ah, interesting. If we (as in everyone interested in this project) were to implement this after we manage to get the driver working on swarm, when in the life-cycle would we do this the best? |
What do you mean by life-cycle? This is unrelated to Docker Swarm support, and can be implemented in parallel. I do not know whether the docker swarm CSI implementation supports this capability though. |
As I said, still a bit new to the CSI spec. Sorry, I rephrased the above comment which makes the statement now a bit confusing. Essentially I am interested where in the code and therefore when in the process of creating a new volume such a thing would have to be added. |
No problem ;) The csi-spec describes this, you can search for To summarize the spec, the field is passed in the calls As we do the actual Lines 52 to 88 in 0b82720
which then calls to Line 55 in 0b82720
Additionally, you would need to add the capability to the list of supported capabilities here: Line 46 in 0b82720
|
So I guess this could work with a simple solution similar to what we did in the docker volume plugin then? https://github.com/costela/docker-volume-hetzner/blob/master/driver.go#L102 |
I think so, but we can probably skip the additional mount/unmount and just run |
VOLUME_MOUNT_GROUP
Capability
Just as a sidenote - since we are Swarm users obviously, this is not something that I can work on until the Swarm plugin works. So if anyone wants to take over, go for it! |
This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs. |
I am currently looking at this but I am not a
|
Hey @schmidp,
You are correct, it needs to be in the
Sounds good, we should also add some unit/integrations for the helper functions. For e2e tests we can rely on the kubernetes test suite which already has tests around this. Once we add the capability, these tests should automatically use the new functionality instead of the kubelet-native alternative. |
This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs. |
Something that would be useful for us, is something that we already PR'ed to the existing Docker volume plugin by @costela (see https://github.com/costela/docker-volume-hetzner) : support for automatic chowning to uid:gid after volume creation so that we can run containers with users other than root.
I am not very familiar with the CSI spec yet, but I was wondering if this exists already as a feature in csi-driver or whether this would require some extra work.
The text was updated successfully, but these errors were encountered: