Add uncommitted plugin change and missing makefile dep

This commit is contained in:
Katrina Verey
2023-01-13 12:53:35 -05:00
parent 18a60ef036
commit 2b38c12c83
2 changed files with 2 additions and 2 deletions

View File

@@ -252,7 +252,7 @@ func (p *HelmChartInflationGeneratorPlugin) Generate() (rm resmap.ResMap, err er
// try to remove the contents before first "---" because
// helm may produce messages to stdout before it
stdoutStr := string(stdout)
if idx := strings.Index(stdoutStr, "---"); idx != -1 {
if idx := strings.Index(stdoutStr, "\n---\n"); idx != -1 {
return p.h.ResmapFactory().NewResMapFromBytes([]byte(stdoutStr[idx:]))
}
return nil, err