Skip to content

Commit

Permalink
chore: less confusing warning message when unexpected media type is f…
Browse files Browse the repository at this point in the history
…ound in index manifest list

Signed-off-by: Andrei Aaron <[email protected]>
  • Loading branch information
andaaron committed Oct 25, 2024
1 parent f735680 commit d87f19f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/storage/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,8 @@ func IsBlobReferencedInImageIndex(imgStore storageTypes.ImageStore, repo string,
case ispec.MediaTypeImageManifest:
found, _ = isBlobReferencedInImageManifest(imgStore, repo, digest, desc.Digest, log)
default:
log.Warn().Str("mediatype", desc.MediaType).Msg("unknown media-type")
log.Warn().Str("mediatype", desc.MediaType).Str("digest", desc.Digest.String()).
Msg("unexpected media-type found in image index manifest list")
// should return true for digests found in index.json even if we don't know it's mediatype
if digest == desc.Digest {
found = true
Expand Down

0 comments on commit d87f19f

Please sign in to comment.