Skip to content

Commit

Permalink
updated .envrc-kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Dec 16, 2024
1 parent e20a8ee commit 62a0488
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .envrc-kubernetes
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62a0488

Please sign in to comment.