feat: enhance authenticator script with usage instructions and exit command

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-03-20 11:03:06 +08:00
parent 39dfcd56cd
commit bf34f4cd90

View File

@ -22,6 +22,10 @@ AUTO_INSTALL_KUBELOGIN=${AUTO_INSTALL_KUBELOGIN:-true}
help() { help() {
echo "Freeleaps Cluster Authenticator (Version: ${VERSION})" echo "Freeleaps Cluster Authenticator (Version: ${VERSION})"
echo "" echo ""
echo "This script helps you to authenticate with the freeleaps cluster using your Mathmast account, and setup kubectl."
echo "It also provides some useful sub-commands to manage the authentication state."
echo "Please ensure this script is only for internal use and not to be shared with anyone."
echo ""
echo "Usage: [environment-option=value] freeleaps-cluster-authenticator <sub-command>" echo "Usage: [environment-option=value] freeleaps-cluster-authenticator <sub-command>"
echo "" echo ""
echo "Sub Commands:" echo "Sub Commands:"
@ -310,6 +314,7 @@ reset_auth() {
exit_dashboard() { exit_dashboard() {
echo "[RUN_DASHBOARD] Kubernetes dashboard stopped." echo "[RUN_DASHBOARD] Kubernetes dashboard stopped."
exit 0
} }
run_dashboard() { run_dashboard() {