1 changed file
.envrc-kubernetes | ||
Add comment 93 cp -f -- "$src_kubeconfig" "$KUBECONFIG"
Add comment 94 fi
Add comment 95 else
Add comment 96 Plus if [[ "$PWD" =~ k8|kube ]]; then
Add comment 96 97 echo "WARNING: failed to find one of:" >&2
Add comment 97 98 echo "$kubeconfig_source_locations" | sort -u >&2
Add comment 98 99 echo >&2
Add comment 99 100 fi
Add comment 101 Plus fi
Add comment 100 102
Add comment 101 103 # race condition - 'kubectl config get-contexts' fails to find the context and switch in many runs without this sleep
Add comment 102 104 context_found=0