Skip to content

Commit

Permalink
Use RetryExec(3) form helm repo add step
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Kubaczyk committed Oct 11, 2021
1 parent 26e33fe commit c69196a
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 c69196a

Please sign in to comment.