increase max size of k8s resource

This commit is contained in:
Yann Hamon 2020-11-15 17:05:11 +01:00
parent b33767a477
commit 7d9bb98a35

View file

@ -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)