From 66d1870d255d96be44dc6450c75a883bc5519867 Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Mon, 10 Jun 2019 15:13:38 -0700 Subject: [PATCH] Add cri managed image label when pulling the image. Signed-off-by: Lantao Liu --- pkg/server/image_pull.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/server/image_pull.go b/pkg/server/image_pull.go index cb71b6778..db6ec46ec 100644 --- a/pkg/server/image_pull.go +++ b/pkg/server/image_pull.go @@ -105,6 +105,7 @@ func (c *criService) PullImage(ctx context.Context, r *runtime.PullImageRequest) containerd.WithResolver(resolver), containerd.WithPullSnapshotter(c.config.ContainerdConfig.Snapshotter), containerd.WithPullUnpack, + containerd.WithPullLabel(imageLabelKey, imageLabelValue), ) if err != nil { return nil, errors.Wrapf(err, "failed to pull and unpack image %q", ref)