Browse Source

Merge pull request #949 from merlindorin/feat/improve-retry

Delegate retry to the controller
paul-the-alien[bot] 4 years ago
parent
commit
ef933a03fd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      pkg/provider/vault/vault.go

+ 2 - 0
pkg/provider/vault/vault.go

@@ -586,6 +586,8 @@ func (v *client) readSecret(ctx context.Context, path, version string) (map[stri
 func (v *client) newConfig() (*vault.Config, error) {
 	cfg := vault.DefaultConfig()
 	cfg.Address = v.store.Server
+	// In a controller-runtime context, we rely on the reconciliation process for retrying
+	cfg.MaxRetries = 0
 
 	if len(v.store.CABundle) == 0 && v.store.CAProvider == nil {
 		return cfg, nil