Skip to content

Commit

Permalink
add comment to explain the reason
Browse files Browse the repository at this point in the history
  • Loading branch information
canercidam committed Aug 22, 2023
1 parent b45eb10 commit ca387b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/components/containers/image_cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ func (ic *imageCleanup) Do(ctx context.Context) error {
return fmt.Errorf("failed to get containers during image cleanup: %v", err)
}

// we list the digest references as the main references for all images
// because we pull by digest references
images, err := ic.client.ListDigestReferences(ctx)
if err != nil {
return fmt.Errorf("failed to list images during image cleanup: %v", err)
Expand Down

0 comments on commit ca387b7

Please sign in to comment.