Skip to content

Commit

Permalink
Add retryExec to diff()
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Kubaczyk committed Nov 9, 2020
1 parent aad6263 commit 772bc62
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 772bc62

Please sign in to comment.