Skip to content

Commit

Permalink
fix: extend the clusterctl timeout
Browse files Browse the repository at this point in the history
This should fix the race conditions seen when creating and upgrading CAPI providers.
  • Loading branch information
dkoshkin committed Oct 1, 2024
1 parent ccac478 commit 6c690d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/clusterctl/client/cluster/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ func retryWithExponentialBackoff(ctx context.Context, opts wait.Backoff, operati

// newWriteBackoff creates a new API Machinery backoff parameter set suitable for use with clusterctl write operations.
func newWriteBackoff() wait.Backoff {
// Return a exponential backoff configuration which returns durations for a total time of ~40s.
// Example: 0, .5s, 1.2s, 2.3s, 4s, 6s, 10s, 16s, 24s, 37s
// Return a exponential backoff configuration which returns durations for a total time of ~6m.
// Example: 0, .5s, 1.2s, 2.3s, 4s, 6s, 10s, 16s, 24s, 37s, 56s, 84s, 126s, 190s
// Jitter is added as a random fraction of the duration multiplied by the jitter factor.
return wait.Backoff{
Duration: 500 * time.Millisecond,
Factor: 1.5,
Steps: 10,
Steps: 14,
Jitter: 0.4,
}
}
Expand Down

0 comments on commit 6c690d1

Please sign in to comment.