Skip to content

Commit

Permalink
perf: reduce auth request count for manifest delete
Browse files Browse the repository at this point in the history
Signed-off-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
  • Loading branch information
Wwwsylvia committed Oct 20, 2023
1 parent f175957 commit ea0878d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions registry/remote/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,7 @@ func (s *manifestStore) deleteWithIndexing(ctx context.Context, target ocispec.D
if err := limitSize(target, s.repo.MaxMetadataBytes); err != nil {
return err
}
ctx = registryutil.WithScopeHint(ctx, s.repo.Reference, auth.ActionPull, auth.ActionDelete)
manifestJSON, err := content.FetchAll(ctx, s, target)
if err != nil {
return err
Expand Down

0 comments on commit ea0878d

Please sign in to comment.