feat(image): return error early if total size of layers exceeds limit (#8294)

Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
Signed-off-by: knqyf263 <knqyf263@gmail.com>
Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
Nikita Pivkin
2025-01-30 14:01:16 +06:00
committed by GitHub
parent 0031a38eb7
commit 73bd20d619
5 changed files with 84 additions and 55 deletions

View File

@@ -206,7 +206,7 @@ func TestDockerEngine(t *testing.T) {
name: "sad path, image size is larger than the maximum",
input: "testdata/fixtures/images/alpine-39.tar.gz",
maxImageSize: "3mb",
wantErr: "uncompressed image size 5.8MB exceeds maximum allowed size 3MB",
wantErr: "uncompressed layers size 5.8MB exceeds maximum allowed size 3MB",
},
}