Skip to content

Commit

Permalink
Ensure new labelselector is used for fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSanford committed Aug 24, 2023
1 parent 90f5d54 commit 4bc558f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/src/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func getPodNameFromUri(client corev1client.CoreV1Interface, podUri string, podNa
}

labelSelector = fmt.Sprintf("uri=%s", podUri)
listOptions = metaV1.ListOptions{
LabelSelector: labelSelector,
Limit: 1,
}
pods, err = client.Pods(podNamespace).List(context.TODO(), listOptions)

if err != nil {
Expand Down

0 comments on commit 4bc558f

Please sign in to comment.