image: fixed tags, catalog, push operation

This commit is contained in:
2026-03-11 21:02:10 +02:00
parent a064d942e7
commit 0d67944966
9 changed files with 25 additions and 18 deletions
+3 -3
View File
@@ -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