From c69196afaa446d41ed276203db79857d75f03df2 Mon Sep 17 00:00:00 2001 From: Mateusz Kubaczyk Date: Mon, 11 Oct 2021 14:48:56 +0200 Subject: [PATCH] Use RetryExec(3) form helm repo add step --- internal/app/helm_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/helm_helpers.go b/internal/app/helm_helpers.go index 11b79dbe..9635ba5b 100644 --- a/internal/app/helm_helpers.go +++ b/internal/app/helm_helpers.go @@ -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) } }