updated how we search for nodes
This commit is contained in:
parent
5069b3455a
commit
fd6186c6df
@ -526,7 +526,7 @@ func (k *KubernetesService) GetOneNode(context context.Context, executionID stri
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, node := range res.Items {
|
for _, node := range res.Items {
|
||||||
if isNode := strings.Contains(node.Name, "admiralty-"+ concatenatedName +"-target-"+ concatenatedName + "-"); isNode {
|
if isNode := strings.Contains(node.Name, "admiralty-"+ executionID +"-target-"+ concatenatedName + "-"); isNode {
|
||||||
return &node, nil
|
return &node, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user