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:
parent
e20a8ee0db
commit
62a0488be3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user