From c4226adc8faf0922b7a86d02b96049a9b4a3a957 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Wed, 22 May 2024 20:08:16 +0000 Subject: [PATCH] Add WithSkipMissing to not fail import on missing blobs Signed-off-by: Brad Davidson (cherry picked from commit 5f6b813cc8694fd6822c8fb05b3703d634949a13) Signed-off-by: Brad Davidson --- pkg/agent/containerd/containerd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/containerd/containerd.go b/pkg/agent/containerd/containerd.go index 4af199e52c..098a0fbb50 100644 --- a/pkg/agent/containerd/containerd.go +++ b/pkg/agent/containerd/containerd.go @@ -208,7 +208,7 @@ func preloadFile(ctx context.Context, cfg *config.Node, client *containerd.Clien defer imageReader.Close() logrus.Infof("Importing images from %s", filePath) - images, err = client.Import(ctx, imageReader, containerd.WithAllPlatforms(true)) + images, err = client.Import(ctx, imageReader, containerd.WithAllPlatforms(true), containerd.WithSkipMissing()) if err != nil { return errors.Wrap(err, "failed to import images from "+filePath) }