Skip to content

Instantly share code, notes, and snippets.

@kesor

kesor/example.sh

Last active Oct 1, 2020
Embed
What would you like to do?
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