From 7bbfb3eb0d9c711332b5d96963bbc8db28bf6115 Mon Sep 17 00:00:00 2001 From: Aditya R Date: Thu, 30 Jun 2022 11:33:28 +0530 Subject: 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 --- pkg/api/server/register_images.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/api/server/register_images.go') 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: -- cgit v1.2.3-54-g00ecf