| 98 | } |
| 99 | |
| 100 | func (u *untilNewestRunning) Reset() targetselector.WaitingStrategy { |
| 101 | return &untilNewestRunning{ |
| 102 | parent: u.parent, |
| 103 | originalDelay: u.originalDelay, |
| 104 | initialDelay: time.Now().Add(u.originalDelay), |
| 105 | podInfoPrinter: &targetselector.PodInfoPrinter{ |
| 106 | LastWarning: time.Now().Add(u.originalDelay), |
| 107 | }, |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | func (u *untilNewestRunning) SelectPod(ctx context.Context, client kubectl.Client, namespace string, pods []*corev1.Pod, log log.Logger) (bool, *corev1.Pod, error) { |
| 112 | now := time.Now() |