Call os.Exit if the Helm install fails

This commit is contained in:
M. Mert Yildiran 2023-06-21 17:11:03 +03:00
parent 6b898077f1
commit 8df5e015c5
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461

View File

@ -3,6 +3,7 @@ package cmd
import (
"context"
"fmt"
"os"
"regexp"
"sync"
"time"
@ -90,7 +91,7 @@ func tap() {
rel, err := helm.NewHelmDefault().Install()
if err != nil {
log.Error().Err(err).Send()
return
os.Exit(1)
} else {
log.Info().Msgf("Installed the Helm release: %s", rel.Name)
}