Skip to content

Commit c16957f

Browse files
authored
Merge pull request #4908 from khrisrichardson/plugin/builtin/helmchartinflationgenerator/split
HelmChartInflationGenerator: split on yaml document end markers
2 parents 903fbb6 + 03c1534 commit c16957f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (p *plugin) Generate() (rm resmap.ResMap, err error) {
258258
// try to remove the contents before first "---" because
259259
// helm may produce messages to stdout before it
260260
stdoutStr := string(stdout)
261-
if idx := strings.Index(stdoutStr, "---"); idx != -1 {
261+
if idx := strings.Index(stdoutStr, "\n---\n"); idx != -1 {
262262
return p.h.ResmapFactory().NewResMapFromBytes([]byte(stdoutStr[idx:]))
263263
}
264264
return nil, err

0 commit comments

Comments
 (0)