Skip to content

Commit

Permalink
No-op when the pods are not ready (#2)
Browse files Browse the repository at this point in the history
No-op when the pods are not ready instead of proceeding
tested in integration test cluster
  • Loading branch information
christopherzli authored May 10, 2024
2 parents a3e6cb4 + b206582 commit 16a968a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ func (c *controller) sync(ctx context.Context) {

if err := c.waitForPod(ctx, podName); err != nil {
level.Warn(c.logger).Log("msg", "failed polling until pod is ready", "pod", podName, "duration", time.Since(start), "err", err)
continue
return
}

level.Debug(c.logger).Log("msg", "waited until new pod was ready", "pod", podName, "duration", time.Since(start))
Expand Down

0 comments on commit 16a968a

Please sign in to comment.