Skip to content

Commit

Permalink
prepare for helm 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe VILA committed Apr 28, 2020
1 parent 99aa1e5 commit 73bedb3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/helmspray/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,12 @@ func (p *sprayCmd) spray() error {
if _, err = tempFile.Write([]byte(updatedChartValuesAsString)); err != nil {
return fmt.Errorf("writing updated default values file for umbrella chart into temporary file: %w", err)
}
p.valuesOpts.ValueFiles = append(p.valuesOpts.ValueFiles, tempFile.Name())
err = tempFile.Close()
if err != nil {
return fmt.Errorf("closing temporary file to write updated default values file for umbrella chart: %w", err)
}
prependArray := []string{tempFile.Name()}
p.valuesOpts.ValueFiles = append(prependArray, p.valuesOpts.ValueFiles...)
}

releasePrefix := ""
Expand Down

0 comments on commit 73bedb3

Please sign in to comment.