-
Notifications
You must be signed in to change notification settings - Fork 90
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
Volumes support #957
base: main
Are you sure you want to change the base?
Volumes support #957
Conversation
* First attempt to support podman volumes * Container details - Mounts * Container details - ENV * Volumes list * Create and remove volume * Volume details
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks for the PR.
It's a great start and seems mostly implemented feature-wise, but it's currently incomplete and still needs a bit of work.
As-is, this doesn't fit the design of Cockpit Podman, as you flipped the order of images and containers. As containers are derived from images, the images need to be on top. Additionally, the containers list can get very long, so everything below it might not be seen. This is why the design has images at the top and is expandable (and collapsed by default).
(Design doc @ cockpit-project/cockpit#16059)
Here's what it looks like in the PR right now:
We might want to use side-by-side cards at the top, similar to Cockpit-Machines. In widescreen, they're side-by-side. When space is constrained, they wrap and stack. (This can be done with PatternFly Flex with breakpoints.):
While it works when maximized on a high-res screen and also collapses down on mobile, the list doesn't work in standard desktop sizes:
Here it is in huge, just for reference of others viewing the PR:
Create volume says "Create container" and has tabs. (It's not obvious what this does. I guess it creates volumes in a standard location, mainly for use in containers later?)
It shouldn't have tabs.
I'm assuming you'll add various options as listed @ https://docs.podman.io/en/latest/markdown/podman-volume-create.1.html too? (This could be handled in follow-up PRs.)
Just as a point of reference, prune and delete are the only options at the moment:
Thanks @garrett for your review, I'll incorporate your valid comments. |
As volumes allow for purning unused volumes, shouldn't we also show which volume is unused and used by a container similar to images? |
I agree, @jelly, but there is no volume usage info present in API, unlike for images. API does not even return volume ID's, only names. List of unused volumes could be reconstructed by going through all the containers on client side, I think. Or is there any easier way? |
Volumes details are empty. Should there be anything there? If not, they shouldn't be expandable. And if there's only one tab of information, there shouldn't be a tab. Also, PF Cards now have the ability to be expandable. Perhaps we should use this for both Images and Volumes. But we can address that in a follow-up. It's just something to keep in mind as it would impact the way volumes look on the page. https://www.patternfly.org/v4/components/card#expandable |
@strzinek Hey! Seems this fall of our radar and now has conflicts. Is this still something you are interested in and able to adjust to currect podman? |
I resolved merge conflicts and removed changes to container details, as these have since been implemented by someone else. TODO:
|
Basic support for Podman volumes management: