Skip to content

Commit

Permalink
fix: first-pass rendering of helmfile.yaml (#441)
Browse files Browse the repository at this point in the history
There was a regression introduced by #439 that broke the first-pass rendering completely. This fixes that.
  • Loading branch information
mumoshu authored Jan 22, 2019
1 parent 344c20d commit b9a097e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,8 @@ type twoPassRenderer struct {

func (r *twoPassRenderer) renderEnvironment(content []byte) environment.Environment {
firstPassEnv := environment.Environment{Name: r.env, Values: map[string]interface{}(nil)}
firstPassRenderer := tmpl.NewFirstPassRenderer(filepath.Dir(r.filename), firstPassEnv)
tmplData := state.EnvironmentTemplateData{Environment: firstPassEnv, Namespace: r.namespace}
firstPassRenderer := tmpl.NewFirstPassRenderer(filepath.Dir(r.filename), tmplData)

// parse as much as we can, tolerate errors, this is a preparse
yamlBuf, err := firstPassRenderer.RenderTemplateContentToBuffer(content)
Expand Down

0 comments on commit b9a097e

Please sign in to comment.