Skip to content

Commit

Permalink
remove unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kale-amruta committed Jan 17, 2025
1 parent faf56f1 commit 04d89aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/cli/connect_helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (cmd *connectHelm) isVclusterReady(ctx context.Context, vKubeConfig clientc
return fmt.Errorf("create virtual kube client: %w", err)
}

werr := wait.PollUntilContextTimeout(ctx, time.Millisecond*200, time.Second*10, true, func(ctx context.Context) (bool, error) {
werr := wait.PollUntilContextTimeout(ctx, time.Millisecond*200, time.Minute*2, true, func(ctx context.Context) (bool, error) {
select {
case err := <-errorChan:
return false, err
Expand Down Expand Up @@ -684,8 +684,6 @@ func getLocalVClusterConfig(vKubeConfig clientcmdapi.Config, options *ConnectOpt

// update vCluster server address in case of OSS vClusters only
if options.LocalPort != 0 {
fmt.Println("getvclusterconfig")
fmt.Println(options.LocalPort)
for _, cluster := range vKubeConfig.Clusters {
if cluster == nil {
continue
Expand Down Expand Up @@ -717,7 +715,7 @@ func (cmd *connectHelm) waitForVCluster(ctx context.Context, vKubeConfig clientc
return err
}

err = wait.PollUntilContextTimeout(ctx, time.Millisecond*200, time.Minute*1, true, func(ctx context.Context) (bool, error) {
err = wait.PollUntilContextTimeout(ctx, time.Millisecond*200, time.Minute*3, true, func(ctx context.Context) (bool, error) {
select {
case err := <-errorChan:
return false, err
Expand Down

0 comments on commit 04d89aa

Please sign in to comment.