From 4d1989364b396b4b03d64bb05a53f67fb1af585f Mon Sep 17 00:00:00 2001 From: Brian Neville <29639579+brianneville@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:35:39 +0000 Subject: [PATCH] containerz]: make image_size required This will allow the server to end the RPC gracefully if there is not enough space to receive the incoming image. --- containerz/containerz.proto | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/containerz/containerz.proto b/containerz/containerz.proto index 8ce69da..c0e2027 100644 --- a/containerz/containerz.proto +++ b/containerz/containerz.proto @@ -140,7 +140,9 @@ message ImageTransfer { // container image. string tag = 2; - // Optional. Indicates the size (in bytes) of the container image. + // Indicates the size (in bytes) of the container image. + // Required to allow the server should validate that there + // is enough space to receive the incoming image. uint64 image_size = 3; // Optional. Instructs the target to fetch the image from a remote location.