Skip to content

Commit 1b89a77

Browse files
Merge pull request #768 from leszko/support-windows
Add support for Windows WSL in run_console_local.sh
2 parents cb5784c + 2546bbd commit 1b89a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/run_console_local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ secretname=$(kubectl get serviceaccount default --namespace=kube-system -o jsonp
44
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)
55

66
args="--net=host"
7-
if [[ $OSTYPE == darwin* ]]; then
7+
if [[ $OSTYPE == darwin* ]] || [[ "$(< /proc/version)" == *@(Microsoft|WSL)* ]]; then
88
args="-p 9000:9000"
99
fi
1010

0 commit comments

Comments
 (0)