chenyulin0719 commented on code in PR #808:
URL: https://github.com/apache/yunikorn-k8shim/pull/808#discussion_r1543461734


##########
test/e2e/framework/helpers/k8s/k8s_utils.go:
##########
@@ -1241,12 +1242,12 @@ func (k *KubeCtl) WaitForPlaceholders(namespace string, 
podPrefix string, numPod
 
 func (k *KubeCtl) ListPlaceholders(namespace string, podPrefix string) 
([]v1.Pod, error) {
        pods := make([]v1.Pod, 0)
-       podList, lstErr := k.ListPods(namespace, "placeholder=true")
+       podList, lstErr := k.ListPods(namespace, "")
        if lstErr != nil {
                return pods, lstErr
        }
        for _, pod := range podList.Items {
-               if strings.HasPrefix(pod.Name, podPrefix) {
+               if strings.HasPrefix(pod.Name, podPrefix) && 
pod.Annotations[constants.AnnotationPlaceholderFlag] == constants.True {

Review Comment:
   Since we cannot list placeholder pods directly using LabelSelector anymore, 
I retrieve all pods and then check placholder pod by pod.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to