From 15a9e1a3c4e843abeb50955bd54df3789590ffb6 Mon Sep 17 00:00:00 2001 From: Adam Martin <42001113+amartin120@users.noreply.github.com> Date: Fri, 20 Sep 2024 17:14:27 -0400 Subject: [PATCH] use new annotation for 'store save' manifest.json (#324) Signed-off-by: Adam Martin --- cmd/hauler/cli/store/save.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/hauler/cli/store/save.go b/cmd/hauler/cli/store/save.go index 873d487b..2060cc68 100644 --- a/cmd/hauler/cli/store/save.go +++ b/cmd/hauler/cli/store/save.go @@ -96,7 +96,7 @@ func writeExportsManifest(ctx context.Context, dir string) error { if desc.Annotations != nil { // we only care about images that cosign has added to the layout index if kind, hasKind := desc.Annotations[consts.KindAnnotationName]; hasKind { - if refName, hasRefName := desc.Annotations[imagev1.AnnotationRefName]; hasRefName { + if refName, hasRefName := desc.Annotations["io.containerd.image.name"]; hasRefName { // branch on image (aka image manifest) or image index switch kind { case consts.KindAnnotationImage: