Skip to content

Commit

Permalink
don't swallow helm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Oct 11, 2023
1 parent 10908cf commit ec8a8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/console/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func InstallAgent(url, token, namespace string) error {

helmConfig, err := helm.GetActionConfig(namespace)
if err != nil {
return nil
return err
}

cp, err := action.NewInstall(helmConfig).ChartPathOptions.LocateChart(fmt.Sprintf("%s/%s", repoName, "deployment-operator"), settings)
Expand Down Expand Up @@ -64,5 +64,5 @@ func InstallAgent(url, token, namespace string) error {
client.Timeout = time.Minute * 10
client.Wait = true
_, err = client.Run(repoName, chart, vals)
return nil
return err
}

0 comments on commit ec8a8ca

Please sign in to comment.