function refresh-kubeconfig { KUBECONFIG=$(find ~/.kube/configs -type f 2>/dev/null | xargs -I % echo -n "%:") kubectl config view --merge --flatten > ~/.kube/config chmod 700 ~/.kube/config }