Skip to content

Commit

Permalink
use new annotation for 'store save' manifest.json (#324)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Martin <adam.martin@ranchergovernment.com>
  • Loading branch information
amartin120 authored Sep 20, 2024
1 parent 6510947 commit 15a9e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/hauler/cli/store/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 15a9e1a

Please sign in to comment.