Skip to content

Commit

Permalink
add mediatype check
Browse files Browse the repository at this point in the history
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
  • Loading branch information
zhouhao committed Mar 8, 2017
1 parent 935fda0 commit 6b69999
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions schema/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ func validateIndex(r io.Reader) error {
}

for _, manifest := range header.Manifests {
if manifest.MediaType != string(v1.MediaTypeImageIndex) {
fmt.Printf("warning: manifest %s has an unknown media type: %s\n", manifest.Digest, manifest.MediaType)
}

checkPlatform(manifest.Platform.OS, manifest.Platform.Architecture)
}

Expand Down

0 comments on commit 6b69999

Please sign in to comment.