1
0
Fork 0
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:
Merlin 2022-04-06 06:18:29 +02:00
parent 8527fe1d13
commit abec2a64cc

View file

@ -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