Skip to content

Commit

Permalink
Merge pull request #316 from Letty5411/node-test-fix
Browse files Browse the repository at this point in the history
test: skip vk node in node test
  • Loading branch information
k8s-ci-robot authored Jun 13, 2022
2 parents f894f5c + 44345d7 commit 0293e1c
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 @@ -555,13 +555,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 0293e1c

Please sign in to comment.