feat(k8s): add version information to freeleaps-cluster-authenticator help message
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
293860028f
commit
ce9826d098
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
VERSION="0.0.1-20250105"
|
||||||
|
|
||||||
CLUSTER_API_LB_IP=${CLUSTER_API_LB_IP:-4.155.160.32}
|
CLUSTER_API_LB_IP=${CLUSTER_API_LB_IP:-4.155.160.32}
|
||||||
CLUSTER_API_LB_PORT=${CLUSTER_API_LB_PORT:-6443}
|
CLUSTER_API_LB_PORT=${CLUSTER_API_LB_PORT:-6443}
|
||||||
MICROSOFT_ENTRA_ID_TENANT=${MICROSOFT_ENTRA_ID_TENANT:-cf151ee8-5c2c-4fe7-a1c4-809ba43c9f24}
|
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}
|
AUTO_INSTALL_KUBELOGIN=${AUTO_INSTALL_KUBELOGIN:-true}
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
echo "Freeleaps Cluster Authenticator"
|
echo "Freeleaps Cluster Authenticator (Version: ${VERSION})"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Usage: freeleaps-cluster-authenticator <sub-command>"
|
echo "Usage: freeleaps-cluster-authenticator <sub-command>"
|
||||||
echo ""
|
echo ""
|
||||||
@ -300,8 +302,7 @@ reset_auth() {
|
|||||||
main() {
|
main() {
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
echo "[ERROR] No sub-command provided."
|
echo "[ERROR] No sub-command provided."
|
||||||
echo ""
|
echo "[TIP] Run 'freeleaps-cluster-authenticator -h' to see available sub-commands."
|
||||||
help
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user