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 232a11d
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,9 +549,10 @@ 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")
// should return true for digests found in index.json even if we don't know it's mediatype
if digest == desc.Digest {
log.Debug().Str("mediatype", desc.MediaType).Str("digest", digest.String()).
Msg("unexpected media-type found in image index manifest list")
found = true
}
}
Expand Down

0 comments on commit 232a11d

Please sign in to comment.