From 44345d7eeac05870b36d383e85f28a05ce739e58 Mon Sep 17 00:00:00 2001 From: letty Date: Mon, 13 Jun 2022 11:47:47 +0800 Subject: [PATCH] test: skip vk node in node test --- test/e2e/client/kubeclient.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e/client/kubeclient.go b/test/e2e/client/kubeclient.go index 2220c7d9f..8d0622a9a 100644 --- a/test/e2e/client/kubeclient.go +++ b/test/e2e/client/kubeclient.go @@ -511,13 +511,16 @@ func (client *KubeClient) GetLatestNode() (*v1.Node, error) { if _, exclude := node.Labels[service.LabelNodeExcludeBalancer]; exclude { continue } - + if _, isVK := node.Labels[service.LabelNodeTypeVK]; isVK { + continue + } if ret.Name == "" { ret = node } else if ret.CreationTimestamp.Before(&node.CreationTimestamp) { ret = node } } + klog.Infof("return node:%s", ret.Name) return &ret, nil }