Skip to content

Commit

Permalink
Wrap external possible error from "go-helm-client.NewClientFromRestCo…
Browse files Browse the repository at this point in the history
…nf()"

Signed-off-by: Tobias Wolf <[email protected]>
  • Loading branch information
NotTheEvilOne committed Dec 1, 2023
1 parent ff77803 commit 9268403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func helmTemplateWithValues(restConfig *rest.Config, chartPath, releaseName, nam

helm, err := helmclient.NewClientFromRestConf(opts)
if err != nil {
return nil, err
return nil, fmt.Errorf("failed to set up helm template for %q: %w", chartPath, err)
}

chartSpec := helmclient.ChartSpec{
Expand Down

0 comments on commit 9268403

Please sign in to comment.