From 61d1c264d8866ddfe83f098fe93afdb6ce87dc7f Mon Sep 17 00:00:00 2001 From: "Chris S. Kim" Date: Fri, 20 Oct 2023 10:30:10 -0400 Subject: [PATCH] Add comment --- agent/connect/ca/provider_vault.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/agent/connect/ca/provider_vault.go b/agent/connect/ca/provider_vault.go index 5fd363896f..692b9a568c 100644 --- a/agent/connect/ca/provider_vault.go +++ b/agent/connect/ca/provider_vault.go @@ -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,