Closed olegTarassov closed 4 years ago
Just Pushed the latest changes that are based on your recommendation. I have one thing that I dont like or know how to fix in single line:
kube_namespace="$(kubectl config view -o "jsonpath={.contexts[?(@.name==\"${kube_context}\")].context.namespace}" 2> /dev/null)"
kube_namespace=${kube_namespace:=default}
I believe there might be a way to overwrite if empty to default
Thanks for the updates, I rebased and merged in #266
1) Test KUBECONFIG global variable instead of file