Skip to content

Commit

Permalink
Use original URI for matching instance=
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSanford committed Aug 24, 2023
1 parent 6cb9cb6 commit 6fc5607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/src/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func getPodNameFromUri(client corev1client.CoreV1Interface, podUri string, podNa
return pod.GetName(), ""
}

labelSelector := fmt.Sprintf("instance=%s", strings.ReplaceAll(podUri, ".", "-"))
pods, err := client.Pods(podNamespace).List(context.TODO(), listOptions)
labelSelector = fmt.Sprintf("instance=%s", podUri)
pods, err = client.Pods(podNamespace).List(context.TODO(), listOptions)

if err != nil {
panic(err.Error())
Expand Down

0 comments on commit 6fc5607

Please sign in to comment.