Skip to content

Commit

Permalink
Merge pull request #545 from sallyom/bz1866399-fix
Browse files Browse the repository at this point in the history
Bug 1866399: lessen retries in must-gather
  • Loading branch information
openshift-merge-robot committed Sep 1, 2020
2 parents dfb0b7a + 406e4be commit f0dcdbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cli/admin/mustgather/mustgather.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func newPrefixWriter(out io.Writer, prefix string) io.Writer {
}

func (o *MustGatherOptions) waitForGatherToComplete(pod *corev1.Pod) error {
err := wait.PollImmediate(3*time.Second, time.Duration(o.Timeout)*time.Second, func() (bool, error) {
err := wait.PollImmediate(10*time.Second, time.Duration(o.Timeout)*time.Second, func() (bool, error) {
var err error
if pod, err = o.Client.CoreV1().Pods(pod.Namespace).Get(context.TODO(), pod.Name, metav1.GetOptions{}); err != nil {
// at this stage pod should exist, we've been gathering container logs, so error if not found
Expand Down Expand Up @@ -435,7 +435,7 @@ func (o *MustGatherOptions) waitForGatherToComplete(pod *corev1.Pod) error {
}

func (o *MustGatherOptions) waitForGatherContainerRunning(pod *corev1.Pod) error {
return wait.PollImmediate(3*time.Second, time.Duration(o.Timeout)*time.Second, func() (bool, error) {
return wait.PollImmediate(10*time.Second, time.Duration(o.Timeout)*time.Second, func() (bool, error) {
var err error
if pod, err = o.Client.CoreV1().Pods(pod.Namespace).Get(context.TODO(), pod.Name, metav1.GetOptions{}); err == nil {
if len(pod.Status.ContainerStatuses) == 0 {
Expand Down

0 comments on commit f0dcdbc

Please sign in to comment.