From 56a52bacb80a01acc09b3e221d3431a4de1465cc Mon Sep 17 00:00:00 2001 From: roman-kiselenko Date: Mon, 4 Dec 2023 19:48:04 +0300 Subject: [PATCH] node-image: add label pinned at the import action Signed-off-by: roman-kiselenko --- pkg/build/nodeimage/imageimporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/build/nodeimage/imageimporter.go b/pkg/build/nodeimage/imageimporter.go index d9e558cc65..2894f57d1d 100644 --- a/pkg/build/nodeimage/imageimporter.go +++ b/pkg/build/nodeimage/imageimporter.go @@ -55,7 +55,7 @@ func (c *containerdImporter) Pull(image, platform string) error { func (c *containerdImporter) LoadCommand() exec.Cmd { return c.containerCmder.Command( // TODO: ideally we do not need this in the future. we have fixed at least one image - "ctr", "--namespace=k8s.io", "images", "import", "--all-platforms", "--no-unpack", "--digests", "-", + "ctr", "--namespace=k8s.io", "images", "import", "--label=io.cri-containerd.pinned=pinned", "--all-platforms", "--no-unpack", "--digests", "-", ) }