Skip to content

Commit

Permalink
Merge pull request #542 from Praqma/helm-diff-retry-exec
Browse files Browse the repository at this point in the history
Add retryExec to diff()
  • Loading branch information
luisdavim authored Nov 10, 2020
2 parents aad6263 + 772bc62 commit e81d065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func (r *release) diff() string {

cmd := helmCmd(concat([]string{"diff", colorFlag, suppressDiffSecretsFlag}, diffContextFlag, r.getHelmArgsFor("diff")), "Diffing release [ "+r.Name+" ] in namespace [ "+r.Namespace+" ]")

result := cmd.exec()
result := cmd.retryExec(3)
if result.code != 0 {
log.Fatal(fmt.Sprintf("Command returned with exit code: %d. And error message: %s ", result.code, result.errors))
} else {
Expand Down

0 comments on commit e81d065

Please sign in to comment.