From cb96eac45b7fb2d044a365dfa91d5a22d011d94d Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Mon, 28 Nov 2022 20:17:25 +0100 Subject: [PATCH] Add missing parameters for checkpoint/restore endpoint Document the remaining missing options for container checkpoint and restore. [NO NEW TESTS NEEDED] Signed-off-by: Jelle van der Waa --- pkg/api/server/register_containers.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkg/api/server/register_containers.go b/pkg/api/server/register_containers.go index 8099d63e35..8097aa5c36 100644 --- a/pkg/api/server/register_containers.go +++ b/pkg/api/server/register_containers.go @@ -1459,6 +1459,18 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error { // type: boolean // description: do not include associated volumes. can only be used with export // - in: query + // name: preCheckpoint + // type: boolean + // description: dump the container's memory information only, leaving the container running. only works on runc 1.0-rc or higher + // - in: query + // name: withPrevious + // type: boolean + // description: check out the container with previous criu image files in pre-dump. only works on runc 1.0-rc or higher + // - in: query + // name: fileLocks + // type: boolean + // description: checkpoint a container with filelocks + // - in: query // name: printStats // type: boolean // description: add checkpoint statistics to the returned CheckpointReport @@ -1517,6 +1529,10 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error { // type: boolean // description: ignore MAC address if set statically // - in: query + // name: fileLocks + // type: boolean + // description: restore a container with file locks + // - in: query // name: printStats // type: boolean // description: add restore statistics to the returned RestoreReport