Skip to content

Commit

Permalink
Retry failed connection to vCenter every minute
Browse files Browse the repository at this point in the history
When connection to vCenter fails (e.g. due to wrong credentials), try to
connect every minute.
  • Loading branch information
jsafrane committed May 5, 2021
1 parent 95e98ae commit 7dc5a5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func (c *vSphereProblemDetectorController) sync(ctx context.Context, syncCtx fac
availableCnd.Message = err.Error()
availableCnd.Reason = "SyncFailed"
syncErrrorMetric.Set(1)
delay = 1 * time.Minute
} else {
syncErrrorMetric.Set(0)
}
Expand Down

0 comments on commit 7dc5a5e

Please sign in to comment.