image: fixed tags, catalog, push operation
This commit is contained in:
@@ -95,6 +95,9 @@ func (oper *Operator) PutManifest(ctx context.Context, params *PutManifestParams
|
||||
return res, code, err
|
||||
}
|
||||
inMan := &ocispec.Manifest{}
|
||||
inMan.Subject = &ocispec.Descriptor{}
|
||||
inMan.Subject.Platform = &ocispec.Platform{}
|
||||
|
||||
err = json.Unmarshal(inManData, inMan)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("Manifest parsing error: %v", err)
|
||||
@@ -107,9 +110,6 @@ func (oper *Operator) PutManifest(ctx context.Context, params *PutManifestParams
|
||||
name := params.Name
|
||||
reference := params.Reference
|
||||
|
||||
if inMan.Subject == nil {
|
||||
}
|
||||
|
||||
arch := inMan.Subject.Platform.Architecture
|
||||
os := inMan.Subject.Platform.OS
|
||||
variant := inMan.Subject.Platform.Variant
|
||||
|
||||
Reference in New Issue
Block a user