From bd6fcf75e65fe2f5657958dce4861b046cb29f4d Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Wed, 28 Jan 2026 22:18:08 +0100 Subject: [PATCH] fix: deprecate MaxDecompressedFileSize instead of removing As Matt suggested we should keep the variable until v5 as it can be used because it is public. Related: - https://github.com/helm/helm/pull/31748#discussion_r2738518696 Signed-off-by: Benoit Tigeot --- pkg/chart/loader/archive/archive.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/chart/loader/archive/archive.go b/pkg/chart/loader/archive/archive.go index 916037f96..659dd6511 100644 --- a/pkg/chart/loader/archive/archive.go +++ b/pkg/chart/loader/archive/archive.go @@ -37,6 +37,12 @@ import ( // The default value is 100 MiB. var MaxDecompressedChartSize int64 = 100 * 1024 * 1024 // Default 100 MiB +// MaxDecompressedFileSize is the size of the largest file that Helm will attempt to load. +// The size of the file is the decompressed version of it when it is stored in an archive. +// +// Deprecated: This variable is no longer used internally and will be removed in Helm v5. +var MaxDecompressedFileSize int64 = 5 * 1024 * 1024 // Default 5 MiB + var drivePathPattern = regexp.MustCompile(`^[a-zA-Z]:/`) var utf8bom = []byte{0xEF, 0xBB, 0xBF}