From 7d9bb98a35c6f8ee059633748463038d8258a0e1 Mon Sep 17 00:00:00 2001 From: Yann Hamon Date: Sun, 15 Nov 2020 17:05:11 +0100 Subject: [PATCH] increase max size of k8s resource --- pkg/resource/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/resource/stream.go b/pkg/resource/stream.go index 2952428..29063f4 100644 --- a/pkg/resource/stream.go +++ b/pkg/resource/stream.go @@ -45,7 +45,7 @@ func FromStream(ctx context.Context, path string, r io.Reader) (<-chan Resource, go func() { scanner := bufio.NewScanner(r) - const maxResourceSize = 1024 * 1024 + const maxResourceSize = 4 * 1024 * 1024 // 4MB ought to be enough for everybody buf := make([]byte, maxResourceSize) scanner.Buffer(buf, maxResourceSize) scanner.Split(SplitYAMLDocument)