save: Remove platform from config descriptor
This was brought up by bmitch that its not expected to have a platform
object in the config descriptor.
Also checked with tianon who agreed, its not _wrong_ but is unexpected
and doesn't neccessarily make sense to have it there.
Also, while technically incorrect, ECR is throwing an error when it sees
this.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit 9160b9fda6
)
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
0c9ff4ca23
commit
61d547bf00
1 changed files with 0 additions and 3 deletions
|
@ -223,8 +223,6 @@ func (s *saveSession) save(outStream io.Writer) error {
|
|||
})
|
||||
}
|
||||
|
||||
imgPlat := imageDescr.image.Platform()
|
||||
|
||||
m := ocispec.Manifest{
|
||||
Versioned: specs.Versioned{
|
||||
SchemaVersion: 2,
|
||||
|
@ -234,7 +232,6 @@ func (s *saveSession) save(outStream io.Writer) error {
|
|||
MediaType: ocispec.MediaTypeImageConfig,
|
||||
Digest: digest.Digest(imageDescr.image.ID()),
|
||||
Size: int64(len(imageDescr.image.RawJSON())),
|
||||
Platform: &imgPlat,
|
||||
},
|
||||
Layers: foreign,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue