mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-22 19:27:01 +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() {
|
go func() {
|
||||||
scanner := bufio.NewScanner(r)
|
scanner := bufio.NewScanner(r)
|
||||||
const maxResourceSize = 1024 * 1024
|
const maxResourceSize = 4 * 1024 * 1024 // 4MB ought to be enough for everybody
|
||||||
buf := make([]byte, maxResourceSize)
|
buf := make([]byte, maxResourceSize)
|
||||||
scanner.Buffer(buf, maxResourceSize)
|
scanner.Buffer(buf, maxResourceSize)
|
||||||
scanner.Split(SplitYAMLDocument)
|
scanner.Split(SplitYAMLDocument)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue