Skip to content

Commit

Permalink
Merge pull request #1594 from eumel8/fix/connecterror
Browse files Browse the repository at this point in the history
print error on cli connection problems
  • Loading branch information
FabianKramm authored Mar 18, 2024
2 parents fe8b7ce + 4d3fed5 commit 5429ba7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/util/clihelper/clihelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,9 @@ func GetKubeConfig(ctx context.Context, kubeClient *kubernetes.Clientset, vclust
kubeConfig, err = kubeconfig.ReadKubeConfig(ctx, kubeClient, vclusterName, namespace)
if err != nil {
if !printedWaiting {
log.Infof("Waiting for vcluster to come up...")
log.Errorf("Error while waiting for vcluster to come up:", err)
printedWaiting = true
}

return false, nil
}
return true, nil
Expand Down

0 comments on commit 5429ba7

Please sign in to comment.