updated how we search for nodes

This commit is contained in:
pb 2025-05-15 10:28:55 +02:00
parent 5069b3455a
commit fd6186c6df

View File

@ -526,7 +526,7 @@ func (k *KubernetesService) GetOneNode(context context.Context, executionID stri
}
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
}
}