mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 14:09:21 +00:00
increase max size of k8s resource
This commit is contained in:
parent
b33767a477
commit
7d9bb98a35
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue