From de1295e29d24b462c564ee98af354d5eee48e958 Mon Sep 17 00:00:00 2001 From: RamiBerm Date: Sun, 11 Jul 2021 14:06:55 +0300 Subject: [PATCH] Update tapRunner.go --- cli/cmd/tapRunner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cmd/tapRunner.go b/cli/cmd/tapRunner.go index 424a0587f..85101bf3d 100644 --- a/cli/cmd/tapRunner.go +++ b/cli/cmd/tapRunner.go @@ -241,6 +241,7 @@ func portForwardApiPod(ctx context.Context, kubernetesProvider *kubernetes.Provi return case modifiedPod := <-modified: if modifiedPod.Status.Phase == "Running" && !isPodReady { + isPodReady = true go func() { err := kubernetes.StartProxy(kubernetesProvider, tappingOptions.GuiPort, mizu.ResourcesNamespace, mizu.AggregatorPodName) if err != nil { @@ -260,7 +261,6 @@ func portForwardApiPod(ctx context.Context, kubernetesProvider *kubernetes.Provi fmt.Println() } } - isPodReady = true } case <-time.After(25 * time.Second):