We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb5784c + 2546bbd commit 1b89a77Copy full SHA for 1b89a77
scripts/run_console_local.sh
@@ -4,7 +4,7 @@ secretname=$(kubectl get serviceaccount default --namespace=kube-system -o jsonp
4
endpoint=$(kubectl config view -o json | jq '{myctx: .["current-context"], ctxs: .contexts[], clusters: .clusters[]}' | jq 'select(.myctx == .ctxs.name)' | jq 'select(.ctxs.context.cluster == .clusters.name)' | jq '.clusters.cluster.server' -r)
5
6
args="--net=host"
7
-if [[ $OSTYPE == darwin* ]]; then
+if [[ $OSTYPE == darwin* ]] || [[ "$(< /proc/version)" == *@(Microsoft|WSL)* ]]; then
8
args="-p 9000:9000"
9
fi
10
0 commit comments