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)