Skip to content

Commit

Permalink
chore(kuma-cp) increate default mesh retry timeout (#1269)
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
(cherry picked from commit 8fdac7b)
  • Loading branch information
jakubdyszkiewicz authored and mergify-bot committed Dec 2, 2020
1 parent 5afb4b6 commit cddc825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/defaults/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func (d *defaultsComponent) Start(_ <-chan struct{}) error {
}

func doWithRetry(fn func() error) error {
backoff, _ := retry.NewConstant(1 * time.Second)
backoff = retry.WithMaxDuration(1*time.Minute, backoff) // if after this time we cannot create a resource - something is wrong and we should return an error which will restart CP.
backoff, _ := retry.NewConstant(5 * time.Second)
backoff = retry.WithMaxDuration(10*time.Minute, backoff) // if after this time we cannot create a resource - something is wrong and we should return an error which will restart CP.
return retry.Do(context.Background(), backoff, func(ctx context.Context) error {
return retry.RetryableError(fn()) // retry all errors
})
Expand Down

0 comments on commit cddc825

Please sign in to comment.