Skip to content

Commit

Permalink
fix handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dbw7 committed Mar 14, 2024
1 parent 6023826 commit 1d48f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (h *Helm) Template(chart, repository, version, valuesFilePath, kubeVersion,
}()

chartContentsBuffer := new(strings.Builder)
cmd := templateCommand(chart, repository, version, targetNamespace, valuesFilePath, kubeVersion, io.MultiWriter(file, chartContentsBuffer), file)
cmd := templateCommand(chart, repository, version, valuesFilePath, kubeVersion, targetNamespace, io.MultiWriter(file, chartContentsBuffer), file)

if _, err = fmt.Fprintf(file, "command: %s\n", cmd); err != nil {
return nil, fmt.Errorf("writing command prefix to log file: %w", err)
Expand All @@ -225,7 +225,7 @@ func (h *Helm) Template(chart, repository, version, valuesFilePath, kubeVersion,
return resources, nil
}

func templateCommand(chart, repository, version, valuesFilePath, targetNamespace, kubeVersion string, stdout, stderr io.Writer) *exec.Cmd {
func templateCommand(chart, repository, version, valuesFilePath, kubeVersion, targetNamespace string, stdout, stderr io.Writer) *exec.Cmd {
var args []string
args = append(args, "template", "--skip-crds", chart, repository)

Expand Down

0 comments on commit 1d48f62

Please sign in to comment.