mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-26 05:14:30 +00:00
Updated names for schema-location vars, added documentation, updated openapi2jsonschema
This commit is contained in:
parent
300b571c33
commit
4ae74305d1
6 changed files with 59 additions and 23 deletions
|
|
@ -45,6 +45,9 @@ func FromStream(ctx context.Context, path string, r io.Reader) (<-chan Resource,
|
|||
|
||||
go func() {
|
||||
scanner := bufio.NewScanner(r)
|
||||
const maxResourceSize = 1024 * 1024
|
||||
buf := make([]byte, maxResourceSize)
|
||||
scanner.Buffer(buf, maxResourceSize)
|
||||
scanner.Split(SplitYAMLDocument)
|
||||
|
||||
SCAN:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue