diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-06-27 17:55:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 17:55:19 +0000 |
commit | 9c4b8a29b06c179725983e7fa8fadf7ee68d9863 (patch) | |
tree | cd2aa0d35a9479aa8f4afc0f17b941b5fb9c5882 /pkg/domain/infra | |
parent | 278afae1de55a2951b2a4810b100d14e5647977b (diff) | |
parent | 2fab7d169b0714574b6620f454c1408bf8097d4f (diff) | |
download | podman-9c4b8a29b06c179725983e7fa8fadf7ee68d9863.tar.gz podman-9c4b8a29b06c179725983e7fa8fadf7ee68d9863.tar.bz2 podman-9c4b8a29b06c179725983e7fa8fadf7ee68d9863.zip |
Merge pull request #14713 from Luap99/volume-plugin
add podman volume reload to sync volume plugins
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r-- | pkg/domain/infra/abi/volumes.go | 5 | ||||
-rw-r--r-- | pkg/domain/infra/tunnel/volumes.go | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/volumes.go b/pkg/domain/infra/abi/volumes.go index a9c53c140..1186d8e81 100644 --- a/pkg/domain/infra/abi/volumes.go +++ b/pkg/domain/infra/abi/volumes.go @@ -211,3 +211,8 @@ func (ic *ContainerEngine) VolumeUnmount(ctx context.Context, nameOrIDs []string return reports, nil } + +func (ic *ContainerEngine) VolumeReload(ctx context.Context) (*entities.VolumeReloadReport, error) { + report := ic.Libpod.UpdateVolumePlugins(ctx) + return &entities.VolumeReloadReport{VolumeReload: *report}, nil +} diff --git a/pkg/domain/infra/tunnel/volumes.go b/pkg/domain/infra/tunnel/volumes.go index 33e090148..6ec35e836 100644 --- a/pkg/domain/infra/tunnel/volumes.go +++ b/pkg/domain/infra/tunnel/volumes.go @@ -108,3 +108,7 @@ func (ic *ContainerEngine) VolumeMount(ctx context.Context, nameOrIDs []string) func (ic *ContainerEngine) VolumeUnmount(ctx context.Context, nameOrIDs []string) ([]*entities.VolumeUnmountReport, error) { return nil, errors.New("unmounting volumes is not supported for remote clients") } + +func (ic *ContainerEngine) VolumeReload(ctx context.Context) (*entities.VolumeReloadReport, error) { + return nil, errors.New("volume reload is not supported for remote clients") +} |