-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Kube Play - Add support for image based volumes #23775
Comments
Supporting image volumes in |
It should be simple to pull base images based of the policy in the play kube code path somewhere before handing to the specgen/libpod volume checks that expect the image to be present so I think we should do it. |
I agree. But, I had a similar discussion with @vrothberg when I wanted to create image based volume and this is why the Qualdet |
I think the argument was mainly around having to all the typical pull options, tsl-verify, authfile, etc.... Given kube play already has these options and already does pull images I see no problem letting it pull images as well. |
I guess that both yes and no. But, I feel like I'm making someone else's points, since I agree with your view :). Now, regarding implementation, as you wrote, pulling the images seems easy to implement. The same function used for the container image can be used with some minor changes. My problem is with the automatic update process. IIUC the code knows how to get the list of images needed to be updated from the list of containers returned by the runtime and labels set on them. However, I could not find a similar mechanism for images used as volumes. Do you know of such a mechanism in the code that you can point me to? |
Are you talking about podman auto-update? |
.Image should not come into play. |
@Luap99 IIUC then yes. Because if Podman supports the @rhatdan Quadlet came into the discussion not because it is part of the flow here but because a similar discussion regarding separation of concern was held back then. I already have the code that supports defining images as volumes. There are two open questions:
|
I still don't quite follow. if the policy is set to always it would juts pull any time the unit is restarted. Or do you actually want to make auto-update check for new volume images and then restart the unit even when the container image didn't changed? I think the later is not really required to implement this feature and could be added later if users actually want it. |
I would think Auto Update only checks if the primary application image is updated, For now, we should just reply on pulling volume images when the service is restarted. |
OK, fine by me. Just wanted to make sure we're all in agreement |
Feature request description
As of 1.31, Kubernetes supports image based volumes (as Gated Featured).
Since Podman already supports it in
run
and also via annotations, it should also support it in the K8S YAML file.Suggest potential solution
If a K8S Yaml is played with a volume of type
image
, Podman should support itHave you considered any alternatives?
Users have other alternatives such as annotations or creating volumes based on images. But, this requires changing the K8S Yaml file which Podman tries to avoid
Additional context
No response
The text was updated successfully, but these errors were encountered: