podman/pkg/domain/entities
Paul Holzinger 2fab7d169b
add podman volume reload to sync volume plugins
Libpod requires that all volumes are stored in the libpod db. Because
volume plugins can be created outside of podman, it will not show all
available plugins. This podman volume reload command allows users to
sync the libpod db with their external volume plugins. All new volumes
from the plugin are also created in the libpod db and when a volume from
the db no longer exists it will be removed if possible.

There are some problems:
- naming conflicts, in this case we only use the first volume we found.
  This is not deterministic.
- race conditions, we have no control over the volume plugins. It is
  possible that the volumes changed while we run this command.

Fixes #14207

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-06-23 18:36:30 +02:00
..
reports golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
types Fix build with GO111MODULE=off 2021-04-15 14:24:39 -04:00
auto-update.go auto-update: simple rollback 2021-08-05 15:20:38 +02:00
container_ps.go bump go module to version 4 2022-01-18 12:47:07 +01:00
containers.go golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
engine.go Standardize on capatalized Cgroups 2022-01-14 12:30:20 -05:00
engine_container.go add podman volume reload to sync volume plugins 2022-06-23 18:36:30 +02:00
engine_image.go bump go module to version 4 2022-01-18 12:47:07 +01:00
engine_system.go Adds tunnel routes for system reset. 2020-05-11 17:03:32 -04:00
events.go bump go module to version 4 2022-01-18 12:47:07 +01:00
filters.go Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
generate.go Handlers for `generate systemd` with custom dependencies 2022-01-19 21:46:16 +05:00
healthcheck.go podmanv2 enable healthcheck run 2020-03-29 18:48:29 -05:00
images.go golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
manifest.go Refactor manifest list operations 2022-01-14 16:13:35 -07:00
network.go golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
play.go play kube: service container 2022-05-12 10:51:13 +02:00
pods.go linter fix from #14299 2022-06-16 16:32:01 -04:00
secrets.go bump go module to version 4 2022-01-18 12:47:07 +01:00
set.go Fix Id->ID where possible for lint 2020-06-10 05:49:41 -04:00
system.go podman system prune support prune unused networks 2022-06-14 14:04:03 +09:00
types.go golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
volumes.go add podman volume reload to sync volume plugins 2022-06-23 18:36:30 +02:00