Skip to content

Commit

Permalink
backport of commit 61d1c26
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris S. Kim committed Oct 20, 2023
1 parent d91fa61 commit 96a4c57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions agent/connect/ca/provider_vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ func (v *VaultProvider) renewToken(ctx context.Context, watcher *vaultapi.Lifeti
go watcher.Start()
defer watcher.Stop()

// These values are chosen to start the exponential backoff
// immediately. Since the Vault client implements its own
// retries, this retry is mostly to avoid resource contention
// and log spam.
retrier := retry.Waiter{
MinFailures: 1,
MinWait: 1 * time.Second,
Expand Down

0 comments on commit 96a4c57

Please sign in to comment.