feat(k8s): add version information to freeleaps-cluster-authenticator help message

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-01-15 03:27:21 +08:00
parent 293860028f
commit ce9826d098

View File

@ -2,6 +2,8 @@
set -eu
VERSION="0.0.1-20250105"
CLUSTER_API_LB_IP=${CLUSTER_API_LB_IP:-4.155.160.32}
CLUSTER_API_LB_PORT=${CLUSTER_API_LB_PORT:-6443}
MICROSOFT_ENTRA_ID_TENANT=${MICROSOFT_ENTRA_ID_TENANT:-cf151ee8-5c2c-4fe7-a1c4-809ba43c9f24}
@ -18,7 +20,7 @@ AUTO_INSTALL_KUBECTL=${AUTO_INSTALL_KUBECTL:-true}
AUTO_INSTALL_KUBELOGIN=${AUTO_INSTALL_KUBELOGIN:-true}
help() {
echo "Freeleaps Cluster Authenticator"
echo "Freeleaps Cluster Authenticator (Version: ${VERSION})"
echo ""
echo "Usage: freeleaps-cluster-authenticator <sub-command>"
echo ""
@ -300,8 +302,7 @@ reset_auth() {
main() {
if [ $# -lt 1 ]; then
echo "[ERROR] No sub-command provided."
echo ""
help
echo "[TIP] Run 'freeleaps-cluster-authenticator -h' to see available sub-commands."
exit 1
fi