chore(cli): Adding info on which kubeconfig is getting used (#1261)

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
Rajesh Rajendran 2023-05-17 17:04:15 +02:00 committed by GitHub
parent 304d9b2dcb
commit 29e9b71cd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,7 @@ function log () {
[[ -f "${HOME}/.kube/config" ]] && local_kube_config_path="${HOME}/.kube/config"
export KUBECONFIG=${KUBECONFIG:-$k3s_path:$local_kube_config_path}
[[ -z $KUBECONFIG ]] && log err "No kubeconfig file found. Exiting"
log info "Using KUBECONFIG $KUBECONFIG"
tmp_dir=$(mktemp -d)
function install_packages() {