Просмотр исходного кода

Delegate Vault retries to the controller

Merlin 4 лет назад
Родитель
Сommit
abec2a64cc
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      pkg/provider/vault/vault.go

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

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