Skip to content

Commit

Permalink
[YUNIKORN-1909] refactor gang scheduling e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Yang <[email protected]>
  • Loading branch information
FrankYang0529 committed Aug 25, 2023
1 parent 5b35abc commit 71b5fe9
Show file tree
Hide file tree
Showing 2 changed files with 371 additions and 821 deletions.
3 changes: 3 additions & 0 deletions test/e2e/framework/helpers/k8s/k8s_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,9 @@ func (k *KubeCtl) isPodInDesiredState(podName string, namespace string, state v1
return func() (bool, error) {
pod, err := k.clientSet.CoreV1().Pods(namespace).Get(context.TODO(), podName, metav1.GetOptions{})
if err != nil {
if k8serrors.IsNotFound(err) {
return false, nil
}
return false, err
}
switch pod.Status.Phase {
Expand Down
Loading

0 comments on commit 71b5fe9

Please sign in to comment.