From aaf1464f2e3b8508e96aff23a04413b693a1bb06 Mon Sep 17 00:00:00 2001 From: bobz965 Date: Mon, 18 Mar 2024 16:43:52 +0800 Subject: [PATCH] fix ip is a substring in node name (#3832) Signed-off-by: bobz965 --- dist/images/kubectl-ko | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/images/kubectl-ko b/dist/images/kubectl-ko index 7207549d6a2..540e345716a 100755 --- a/dist/images/kubectl-ko +++ b/dist/images/kubectl-ko @@ -493,7 +493,7 @@ xxctl(){ checkLeader(){ component="$1"; shift set +o pipefail - count=$(kubectl get ep ovn-$component -n $KUBE_OVN_NS -o yaml | grep ip | wc -l) + count=$(kubectl get ep ovn-$component -n $KUBE_OVN_NS -o yaml | grep "ip:" | wc -l) set -o pipefail if [ $count -eq 0 ]; then echo "no ovn-$component exists !!"