Skip to content

Commit

Permalink
updated .envrc
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed May 7, 2024
1 parent 26941a0 commit 838dd27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ kube_context(){
echo >&2
fi

# race condition - kubectl config get-contexts fails to find the context and switch in many runs without this sleep
# race condition - 'kubectl config get-contexts' fails to find the context and switch in many runs without this sleep
context_found=0
local i
for ((i=0; i < 10; i++)); do
for ((i=0; i < 5; i++)); do
# surprisingly unreliable - if kubectl config get-contexts -o name | grep -Fxq "$context" can miss even after these succeed
#if [ -s "$KUBECONFIG" ]; then
#if cmp --quiet "$from_kubeconfig" "$KUBECONFIG"; then
Expand Down

0 comments on commit 838dd27

Please sign in to comment.