From 4f5e8d004144ff3bd35d48b7080d3eccdeca18d5 Mon Sep 17 00:00:00 2001 From: Olivier Grand Date: Wed, 7 Aug 2024 10:51:25 +0200 Subject: [PATCH] fix failed node for check-k8s --- tools/scripts/check-k8s.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scripts/check-k8s.sh b/tools/scripts/check-k8s.sh index dda849d..0f11463 100755 --- a/tools/scripts/check-k8s.sh +++ b/tools/scripts/check-k8s.sh @@ -15,7 +15,7 @@ checkClusterResources() { if [ "${flagTimeout}" != "" ] ; then printf "\n%bCluster \"${context}\" not available...%b\n" "${RED}" "${STD}" else - result="$(echo "${result}" | grep -v "Ready" | awk '{printf "%-18s %s\n", $2, $1}' | sort)" + result="$(echo "${result}" | grep -v " Ready " | awk '{printf "%-18s %s\n", $2, $1}' | sort)" if [ "${result}" != "" ] ; then printf "\n%bSTATUS NODE%b\n${result}\n" "${GREEN}" "${STD}" fi