diff --git a/pkg/keymanagementprovider/azurekeyvault/provider.go b/pkg/keymanagementprovider/azurekeyvault/provider.go index 6f2c79904..8b8a2f0b1 100644 --- a/pkg/keymanagementprovider/azurekeyvault/provider.go +++ b/pkg/keymanagementprovider/azurekeyvault/provider.go @@ -207,7 +207,7 @@ func (s *akvKMProvider) GetCertificates(ctx context.Context) (map[keymanagementp logger.GetLogger(ctx, logOpt).Debugf("fetching secret from key vault, certName %v, certVersion %v, vaultURI: %v", keyVaultCert.Name, keyVaultCert.Version, s.vaultURI) startTime := time.Now() - versionHistory := []VersionInfo{} + var versionHistory []VersionInfo certVersionPager := s.certificateKVClient.NewListCertificateVersionsPager(keyVaultCert.Name, nil) for certVersionPager.More() {