From b3efe038bacc8c44a2108f1d9a28ed1d8d6305ee Mon Sep 17 00:00:00 2001 From: Thomas Philipona Date: Sun, 31 May 2026 11:34:25 +0200 Subject: [PATCH] use the local created context --- build/bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/build/bashrc b/build/bashrc index 633617b..10ac235 100644 --- a/build/bashrc +++ b/build/bashrc @@ -24,6 +24,7 @@ if [ ! -f "$HOME/.kube/config" ]; then kubectl config set-credentials local --token="$(cat /run/secrets/kubernetes.io/serviceaccount/token)" kubectl config set-context local --cluster "local" --user "local" kubectl config set-context local --namespace="${KUBECONFIG_NAMESPACE:-$USER}" + kubectl config use-context local if [ -n "$CLUSTER_K8S_API_HOST" ]; then /home/theia/create_kubeconfig.sh