Skip to content

Commit

Permalink
test: skip vk node in node test
Browse files Browse the repository at this point in the history
  • Loading branch information
Letty5411 committed Jun 13, 2022
1 parent 628fd2d commit 44345d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/client/kubeclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 44345d7

Please sign in to comment.