From d2cae9f1fa05825d381c6df808a84125c06de633 Mon Sep 17 00:00:00 2001 From: Christophe Sauthier Date: Fri, 9 Feb 2024 15:15:27 -0500 Subject: [PATCH] Removing the short flag from kubectl Signed-off-by: Christophe Sauthier --- scripts/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index bcbed8d..77efe50 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -10,7 +10,7 @@ config_file="${SOURCE_PATH}/config/client-info.yml" plugin_dir="/var/lib/kubelet/plugins/$plugin_name" parse_version(){ - ver=$(kubectl version --short | grep Server | awk '{print $3}') + ver=$(kubectl version | grep Server | awk '{print $3}') major=$(echo "${ver##*v}" | cut -d'.' -f1) minor=$(echo "${ver##*v}" | cut -d'.' -f2) @@ -106,4 +106,4 @@ case "$1" in print_usage exit 1 ;; -esac \ No newline at end of file +esac