diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index 353d4c76b..6ff2df799 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -223,11 +223,7 @@ func (e Engine) renderWithReferences(tpls, referenceTpls map[string]renderable) // Work around the issue where Go will emit "" even if Options(missing=zero) // is set. Since missing=error will never get here, we do not need to handle // the Strict case. - f := &chart.File{ - Name: strings.ReplaceAll(filename, "/templates", "/manifests"), - Data: []byte(strings.ReplaceAll(buf.String(), "", "")), - } - rendered[filename] = string(f.Data) + rendered[filename] = strings.ReplaceAll(buf.String(), "", "") } return rendered, nil