mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
Delegate Vault retries to the controller
This commit is contained in:
parent
8527fe1d13
commit
abec2a64cc
1 changed files with 2 additions and 0 deletions
|
@ -558,6 +558,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
|
||||
|
|
Loading…
Reference in a new issue