From 727fa8c3302ec1025f3a3079e31a51f84f415fdb Mon Sep 17 00:00:00 2001 From: Kern Walster Date: Sat, 15 Jul 2023 00:22:11 +0000 Subject: [PATCH] Don't require soci index digest label Signed-off-by: Kern Walster --- fs/fs.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/fs.go b/fs/fs.go index 5b3df6d40..1f9e40153 100644 --- a/fs/fs.go +++ b/fs/fs.go @@ -367,10 +367,9 @@ func (fs *filesystem) Mount(ctx context.Context, mountpoint string, labels map[s start := time.Now() ctx = log.WithLogger(ctx, log.G(ctx).WithField("mountpoint", mountpoint)) - sociIndexDigest, ok := labels[source.TargetSociIndexDigestLabel] - if !ok { - return fmt.Errorf("unable to get soci index digest from labels") - } + // If this is empty or the label doesn't exist, then we will use the referrers API later + // to get find an index digest. + sociIndexDigest := labels[source.TargetSociIndexDigestLabel] imageRef, ok := labels[ctdsnapshotters.TargetRefLabel] if !ok { return fmt.Errorf("unable to get image ref from labels")