Преглед изворни кода

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

Delegate retry to the controller
paul-the-alien[bot] пре 4 година
родитељ
комит
ef933a03fd
1 измењених фајлова са 2 додато и 0 уклоњено
  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