From 940c0cc3182a0b6e5cdb4372c77744fe81de37e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=8C=AF=E5=AE=87?= <> Date: Tue, 14 Jan 2025 16:46:25 +0800 Subject: [PATCH] fix(k8s): update prerequisite messages in freeleaps-cluster-authenticator for consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- bin/freeleaps-cluster-authenticator | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/freeleaps-cluster-authenticator b/bin/freeleaps-cluster-authenticator index 2c32e5f3..9c8115d3 100755 --- a/bin/freeleaps-cluster-authenticator +++ b/bin/freeleaps-cluster-authenticator @@ -89,13 +89,13 @@ ensure_kubelogin() { gather_prerequisites() { gather_os_environment - echo "[PRE-PREREQUISITES] Checking for required tools..." + echo "[PREREQUISITES] Checking for required tools..." if ! command -v curl > /dev/null; then echo "[ERROR] curl is required to download kubectl and kubelogin" exit 1 else - echo "[PRE-PREREQUISITES] curl: ✓" + echo "[PREREQUISITES] curl: ✓" fi @@ -103,19 +103,19 @@ gather_prerequisites() { echo "[ERROR] unzip is required to extract kubelogin" exit 1 else - echo "[PRE-PREREQUISITES] unzip: ✓" + echo "[PREREQUISITES] unzip: ✓" fi if ! command -v uname > /dev/null; then echo "[ERROR] uname is required to determine OS and architecture" exit 1 else - echo "[PRE-PREREQUISITES] uname: ✓" + echo "[PREREQUISITES] uname: ✓" fi if ! command -v kubectl > /dev/null; then if [ "${AUTO_INSTALL_KUBECTL}" = "true" ]; then - echo "[PRE-PREREQUISITES] kubectl: Installing..." + echo "[PREREQUISITES] kubectl: Installing..." ensure_kubectl else echo "[ERROR] kubectl is required to authenticate with the cluster" @@ -123,12 +123,12 @@ gather_prerequisites() { fi else - echo "[PRE-PREREQUISITES] kubectl: ✓" + echo "[PREREQUISITES] kubectl: ✓" fi if ! command -v kubelogin > /dev/null; then if [ "${AUTO_INSTALL_KUBECTL}" = "true" ]; then - echo "[PRE-PREREQUISITES] kubelogin: Installing..." + echo "[PREREQUISITES] kubelogin: Installing..." ensure_kubelogin else echo "[ERROR] kubelogin is required to authenticate with the cluster" @@ -136,7 +136,7 @@ gather_prerequisites() { fi else - echo "[PRE-PREREQUISITES] kubelogin: ✓" + echo "[PREREQUISITES] kubelogin: ✓" fi }