-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 volumeMounts.subPath in podman kube play #12929
Comments
@umohnani8 @vrothberg WDYT? |
A friendly reminder that this issue had no activity for 30 days. |
@vrothberg @umohnani8 Thoughts? |
Apologies for missing the ping last month. I will defer to @mheon since he is the volumes expert. |
I'd need to figure out what |
From a user's point of view, it seems to do exactly what you described. |
A friendly reminder that this issue had no activity for 30 days. |
@fpoirotte interested in opening a PR to add this? |
I don't really have any experience with the Go language so I'm not sure I would be up to the task. I would feel much safer knowing someone with more experience is taking over this subject. |
No problem. Thanks for reporting it. |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
Good candidate for interns |
Agreed. Or @cdoern |
I'd be happy to take this one but if @jakecorrenti or @karthikelango137 want it, just let me know |
I'm already working on a couple things already, I don't want to take it and have it sit |
I'm working on a couple other issues, you can take it |
A friendly reminder that this issue had no activity for 30 days. |
I'm also waiting for this support, is there any news about this feature @cdoern ? Thanks. |
If someone from the community wants to step up and help move this forward, that would be great. |
SGTM |
I'm familiar with how |
@jesselang I will push my code that I have and you can take a look at what I was thinking |
I don't have the know how to help developing this feature but i can help testing this PR. |
@cdoern any progress here? |
Any news about this feature? Thanks |
This is probably the only remaining feature that will make |
@gsalvatella so sorry about this one, I'll make this a top priority this week, thanks for being consistent!!!!! |
@gsalvatella @gilfrade just an update, I have this almost working with named volumes in podman, will have a PR you can try out by weeks end. |
subpath allows for only a subdirecty of a volumes data to be mounted in the container add support for the named volume type sub path with others to follow. resolves containers#12929 Signed-off-by: Charlie Doern <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
Please consider adding support for
volumeMounts.subPath
inpodman kube play
.This topic was briefly discussed in 2020 (#5654) but the request was rejected at the time.
I would like to request it again to improve compatibility between kubernetes and podman.
Steps to reproduce the issue:
/tmp/my-lamp-site.yaml
with this content:Create a volume :
podman volume create my-lamp-site-data
podman play kube /tmp/my-lamp-site.yaml
Describe the results you received:
mysql's data is written at the root of the
my-lamp-site-data
volumeDescribe the results you expected:
mysql's data should have been stored in a subfolder named
mysql
inside the volume because that's whatsubPath
points to.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
irrelevant
The text was updated successfully, but these errors were encountered: