Adding version check to all commands execution (#236)

This commit is contained in:
Igor Gov
2021-08-19 11:33:20 +03:00
committed by GitHub
parent 7a31263e4a
commit a34c2fc0dc
3 changed files with 24 additions and 10 deletions

View File

@@ -10,7 +10,6 @@ import (
"github.com/up9inc/mizu/cli/logger"
"github.com/up9inc/mizu/cli/mizu/fsUtils"
"github.com/up9inc/mizu/cli/mizu/goUtils"
"github.com/up9inc/mizu/cli/mizu/version"
"github.com/up9inc/mizu/cli/telemetry"
"net/http"
"net/url"
@@ -79,7 +78,7 @@ func RunMizuTap() {
} else {
namespacesStr = "all namespaces"
}
version.CheckNewerVersion()
logger.Log.Infof("Tapping pods in %s", namespacesStr)
if err, _ := updateCurrentlyTappedPods(kubernetesProvider, ctx, targetNamespaces); err != nil {