diff --git a/internal/progress/ci.go b/internal/progress/ci.go index bd9f75366..bafd00952 100644 --- a/internal/progress/ci.go +++ b/internal/progress/ci.go @@ -2,14 +2,12 @@ package progress import ( "fmt" - "log" "time" "github.com/konstructio/kubefirst/internal/cluster" ) func WatchClusterForCi(clusterName string) { - ticker := time.NewTicker(10 * time.Second) defer ticker.Stop() @@ -24,7 +22,7 @@ func WatchClusterForCi(clusterName string) { provisioningCluster, _ := cluster.GetCluster(clusterName) if provisioningCluster.Status == "error" { - log.Fatalf("unable to provision cluster: %s", provisioningCluster.LastCondition) + fmt.Printf("unable to provision cluster: %s", provisioningCluster.LastCondition) done <- true } diff --git a/internal/progress/message.go b/internal/progress/message.go index 812eef09d..6dfdd8a4b 100644 --- a/internal/progress/message.go +++ b/internal/progress/message.go @@ -199,7 +199,6 @@ func AddStep(message string) { } func CompleteStep(message string) { - if !CanRunBubbleTea { fmt.Println(message) return @@ -236,7 +235,6 @@ func Error(message string) { } func StartProvisioning(clusterName string) { - if !CanRunBubbleTea { WatchClusterForCi(clusterName) } else {