From 6815998f99d29e647c9d2a62a442b8e05f6db527 Mon Sep 17 00:00:00 2001 From: Eunan Hardy <25510708+eunanio@users.noreply.github.com> Date: Fri, 20 Jun 2025 13:28:52 +0100 Subject: [PATCH] Added Additional Comments Add comments and sign Signed-off-by: Eunan Hardy <25510708+eunanio@users.noreply.github.com> --- pkg/chart/v2/loader/archive.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/chart/v2/loader/archive.go b/pkg/chart/v2/loader/archive.go index 5c4490860..609c124aa 100644 --- a/pkg/chart/v2/loader/archive.go +++ b/pkg/chart/v2/loader/archive.go @@ -119,6 +119,7 @@ func isGZipApplication(data []byte) bool { return bytes.HasPrefix(data, sig) } +// getMaxDecompressedChartSize retrieves the maximum size of a decompressed chart from the environment variable func getMaxDecompressedChartSize() int64 { chartSizeEnv, ok := os.LookupEnv(MaxChartSizeEnv) if !ok { @@ -132,6 +133,7 @@ func getMaxDecompressedChartSize() int64 { return maxSize } +// getMaxDecompressedFileSize retrieves the maximum size of a decompressed file from the environment variable func getMaxDecompressedFileSize() int64 { fileSizeEnv, ok := os.LookupEnv(MaxChartFileSizeEnv) if !ok {