We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0457640 commit 231a618Copy full SHA for 231a618
pkg/attacher/attach.go
@@ -68,7 +68,9 @@ func (a *Attacher) Attach(selector, namespace string) {
68
}
69
70
if len(pl.Items) == 0 {
71
- return false, fmt.Errorf(podNotFoundError)
+ // A job might have been created but the pod scheduling could have been delayed
72
+ // therefore we cannot simply error out here and must continue retrying.
73
+ return false, nil
74
75
pod := &pl.Items[0]
76
if pod.Status.Phase == corev1.PodSucceeded || pod.Status.Phase == corev1.PodFailed {
0 commit comments