1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-14 20:56:42 +00:00

test/e2e: fix e2e-config node matching

Pick the correct rule when multiple node rules are present.
This commit is contained in:
Markus Lehtonen 2020-11-24 11:34:46 +02:00
parent 9b8451209c
commit 0512b06027

View file

@ -535,6 +535,7 @@ var _ = framework.KubeDescribe("[NFD] Node Feature Discovery", func() {
if conf.nameRe.MatchString(node.Name) {
e2elog.Logf("node %q matches rule %q", node.Name, conf.nameRe)
nodeConf = &conf
break
}
}
if nodeConf == nil {