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