Skip to content

Commit

Permalink
Merge pull request #630 from Praqma/helm-repo-add-retry
Browse files Browse the repository at this point in the history
Use RetryExec(3) for helm repo add step
  • Loading branch information
luisdavim authored Oct 11, 2021
2 parents 26e33fe + c69196a commit c46588e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/helm_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func addHelmRepos(repos map[string]string) error {
}
}
cmd := helmCmd(concat([]string{"repo", "add", forceUpdateFlag, repoName, repoURL}, basicAuthArgs), "Adding helm repository [ "+repoName+" ]")
if _, err := cmd.Exec(); err != nil {
if _, err := cmd.RetryExec(3); err != nil {
return fmt.Errorf("while adding helm repository [%s]]: %w", repoName, err)
}
}
Expand Down

0 comments on commit c46588e

Please sign in to comment.