Skip to content

Commit

Permalink
Log error if not able to get pod in waitTerminatingPods and waitCreat…
Browse files Browse the repository at this point in the history
…ingPods
  • Loading branch information
Luiz Felipe Takakura committed Aug 7, 2019
1 parent 2b1a9b4 commit 1cfa8f9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions controller/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,15 @@ func waitTerminatingPods(
exit = false
break
}

if err != nil && !strings.Contains(err.Error(), "not found") {
logger.
WithError(err).
WithField("pod", pod.GetName()).
Info("error getting pod")
exit = false
break
}
}
case <-timeoutTimer.C:
logger.Error("timeout waiting for rooms to be removed")
Expand Down Expand Up @@ -319,6 +328,15 @@ func waitCreatingPods(
break
}

if err != nil && !strings.Contains(err.Error(), "not found") {
logger.
WithError(err).
WithField("pod", pod.GetName()).
Info("error getting pod")
exit = false
break
}

if !models.IsPodReady(createdPod) {
logger.WithField("pod", createdPod.GetName()).Debug("pod not ready yet, waiting...")
exit = false
Expand Down

0 comments on commit 1cfa8f9

Please sign in to comment.