Verified Commit 22060122 authored by Leeward Bound's avatar Leeward Bound 💼

fix(kubectl): ok if .kube/clusters doesnt exist

parent e02d2d17
# support both default kube config and k3s alternate
export KUBECONFIG="$HOME/.kube/k3s:$HOME/.kube/config"
for config in $(ls $HOME/.kube/clusters); do
export KUBECONFIG="$KUBECONFIG:$HOME/.kube/clusters/$config";
done
if [[ -e $HOME/.kube/clusters ]]; then
for config in $(ls $HOME/.kube/clusters); do
export KUBECONFIG="$KUBECONFIG:$HOME/.kube/clusters/$config";
done
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment