compat: Translate noprune into ImageRemoveOptions.NoPrune

PR #15093 implemented support for NoPrune in the ImageRemoveOptions,
this PR simply brings that also to the compat API along with
regression tests.

Signed-off-by: Andreas Kohn <andreas.kohn@gmail.com>
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
Andreas Kohn
2023-03-31 18:18:32 +02:00
committed by Valentin Rothberg
parent 911be1cbcb
commit b65ab52d8d
3 changed files with 33 additions and 7 deletions

View File

@@ -229,7 +229,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// - in: query
// name: noprune
// type: boolean
// description: not supported. will be logged as an invalid parameter if enabled
// description: do not remove dangling parent images
// produces:
// - application/json
// responses: