summaryrefslogtreecommitdiff
path: root/pkg/api/server
diff options
context:
space:
mode:
authorAditya R <arajan@redhat.com>2022-06-30 11:33:28 +0530
committerAditya R <arajan@redhat.com>2022-06-30 14:56:42 +0530
commit7bbfb3eb0d9c711332b5d96963bbc8db28bf6115 (patch)
treea06c4d46502c889f468e5ef3f1ec693331230662 /pkg/api/server
parent3426d56b92be2ac1c3cc62fc578e9cb6d64aca81 (diff)
downloadpodman-7bbfb3eb0d9c711332b5d96963bbc8db28bf6115.tar.gz
podman-7bbfb3eb0d9c711332b5d96963bbc8db28bf6115.tar.bz2
podman-7bbfb3eb0d9c711332b5d96963bbc8db28bf6115.zip
api,images: add support for LookupManifest to Image remove API
ImagesBatchRemoval and ImageRemoval now honors and accepts `LookupManifest` parameter which further tells libimage to resolve to manifest list if it exists instead of actual image. Following PR also makes `podman-remote manifest rm` functional which was broken till now. Closes: https://github.com/containers/podman/issues/14763 Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'pkg/api/server')
-rw-r--r--pkg/api/server/register_images.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go
index a9f9cb5b1..a2f46cb35 100644
--- a/pkg/api/server/register_images.go
+++ b/pkg/api/server/register_images.go
@@ -948,6 +948,10 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// name: ignore
// description: Ignore if a specified image does not exist and do not throw an error.
// type: boolean
+ // - in: query
+ // name: lookupManifest
+ // description: Resolves to manifest list instead of image.
+ // type: boolean
// produces:
// - application/json
// responses: