Last active
October 1, 2020 07:22
-
-
Save kesor/fbb915196792d179120152466c443962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_cluster_name() { | |
if ! kubectl config current-context ; then | |
echo "ERROR: Could not read kubeconfig context" 2>&1 | |
exit 1 | |
fi | |
} | |
CLUSTER_NAME=$(get_cluster_name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment