Skip to content

Commit

Permalink
add wait flag for agent installation
Browse files Browse the repository at this point in the history
  • Loading branch information
zreigz committed Oct 4, 2023
1 parent cfd5452 commit d143507
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/console/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ func InstallAgent(url, token, namespace string) error {
instClient.Namespace = namespace
instClient.ReleaseName = repoName
instClient.Timeout = time.Minute * 10

instClient.Wait = true
_, err = instClient.Run(chart, vals)
return err
}
client := action.NewUpgrade(helmConfig)
client.Namespace = namespace
client.Timeout = time.Minute * 10
client.Wait = true
_, err = client.Run(repoName, chart, vals)
return nil
}

0 comments on commit d143507

Please sign in to comment.