1
0
mirror of https://github.com/HariSekhon/DevOps-Bash-tools.git synced 2025-02-06 09:28:21 +00:00

updated .envrc-kubernetes

This commit is contained in:
Hari Sekhon 2024-12-17 02:29:13 +07:00
parent e20a8ee0db
commit 62a0488be3

View File

@ -118,9 +118,11 @@ kube_context(){
#if kubectl config get-contexts -o name 2>/dev/null | grep -Fxq "$context"; then
if [ "$context_found" = 1 ]; then
kubectl config use-context "$CONTEXT"
echo
if [ -n "${namespace:-}" ]; then
kubectl config set-context "$context" --namespace "$namespace"
echo
fi
fi
fi