Skip to content

Commit

Permalink
containerz]: make image_size required
Browse files Browse the repository at this point in the history
This will allow the server to end the RPC gracefully if there is not enough space
to receive the incoming image.
  • Loading branch information
brianneville authored Dec 11, 2024
1 parent 73a1e76 commit 4d19893
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion containerz/containerz.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4d19893

Please sign in to comment.