Skip to content

Commit

Permalink
Merge pull request #706 from q384566678/add-platcheck
Browse files Browse the repository at this point in the history
schema: add check platform to manifests
  • Loading branch information
stevvooe authored Jul 5, 2017
2 parents 634a86b + 4fddb94 commit edc826a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions schema/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ func validateIndex(r io.Reader) error {
if manifest.MediaType != string(v1.MediaTypeImageManifest) {
fmt.Printf("warning: manifest %s has an unknown media type: %s\n", manifest.Digest, manifest.MediaType)
}
if manifest.Platform != nil {
checkPlatform(manifest.Platform.OS, manifest.Platform.Architecture)
}

}

Expand Down

0 comments on commit edc826a

Please sign in to comment.