Skip to content

Commit

Permalink
mod: add comments for pager loop logic
Browse files Browse the repository at this point in the history
  • Loading branch information
duffney committed Nov 27, 2024
1 parent 6410ecb commit 0d5af47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/keymanagementprovider/azurekeyvault/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ func (s *akvKMProvider) GetKeys(ctx context.Context) (map[keymanagementprovider.
}
}

// get the latest version of the certificate up to the limit
for _, version := range versionHistory[len(versionHistory)-keyVaultKey.VersionHistoryLimit:] {
keyResponse, err := s.keyKVClient.GetKey(ctx, keyVaultKey.Name, version)
if err != nil {
Expand Down

0 comments on commit 0d5af47

Please sign in to comment.