diff --git a/pkg/helm/helm.go b/pkg/helm/helm.go index ce6ab611..698531a8 100644 --- a/pkg/helm/helm.go +++ b/pkg/helm/helm.go @@ -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) @@ -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)