@@ -84,12 +84,12 @@ func ParseRelease(release *release.Release, includeTests bool) map[string]*Mappi
84
84
85
85
// Parse parses manifest strings into MappingResult
86
86
func Parse (manifest string , defaultNamespace string , excludedHooks ... string ) map [string ]* MappingResult {
87
- // ensure we have a newline in front of the yaml seperator
87
+ // Ensure we have a newline in front of the yaml seperator
88
88
scanner := bufio .NewScanner (strings .NewReader ("\n " + manifest ))
89
89
scanner .Split (scanYamlSpecs )
90
- //Allow for tokens (specs) up to 1M in size
91
- scanner .Buffer (make ([]byte , bufio .MaxScanTokenSize ), 1048576 )
92
- //Discard the first result, we only care about everything after the first separator
90
+ // Allow for tokens (specs) up to 10MiB in size
91
+ scanner .Buffer (make ([]byte , bufio .MaxScanTokenSize ), 10485760 )
92
+ // Discard the first result, we only care about everything after the first separator
93
93
scanner .Scan ()
94
94
95
95
result := make (map [string ]* MappingResult )
@@ -104,8 +104,8 @@ func Parse(manifest string, defaultNamespace string, excludedHooks ...string) ma
104
104
log .Fatalf ("YAML unmarshal error: %s\n Can't unmarshal %s" , err , content )
105
105
}
106
106
107
- //Skip content without any metadata. It is probably a template that
108
- //only contains comments in the current state.
107
+ // Skip content without any metadata. It is probably a template that
108
+ // only contains comments in the current state.
109
109
if parsedMetadata .APIVersion == "" && parsedMetadata .Kind == "" {
110
110
continue
111
111
}
0 commit comments