Skip to content

Commit 2d7e71c

Browse files
authored
Merge pull request #1143 from ktock/containerd-labels-ipfs
labels: correctly propagate extra labels
2 parents 67b0b96 + b9c484f commit 2d7e71c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

script/integration/containerd/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ if [ "${BUILTIN_SNAPSHOTTER}" != "true" ] ; then
304304
ctr-remote i pull --user "${DUMMYUSER}:${DUMMYPASS}" "${REGISTRY_HOST}/ubuntu:22.04"
305305
CID=$(ctr-remote i ipfs-push "${REGISTRY_HOST}/ubuntu:22.04")
306306
reboot_containerd
307-
run_and_check_remote_snapshots ctr-remote i rpull --containerd-labels --ipfs "${CID}"
307+
run_and_check_remote_snapshots ctr-remote i rpull --use-containerd-labels --ipfs "${CID}"
308308
copy_out_dir "${CID}" "/usr" "${USR_STARGZSN_CTD_IPFS}" "stargz"
309309

310310
# overlayfs snapshotter

service/cri.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func sourceFromCRILabels(hosts source.RegistryHosts) source.GetSources {
104104
{
105105
Hosts: hosts,
106106
Name: refspec,
107-
Target: ocispec.Descriptor{Digest: target},
107+
Target: targetDesc,
108108
Manifest: ocispec.Manifest{Layers: append([]ocispec.Descriptor{targetDesc}, neighboringLayers...)},
109109
},
110110
}, nil

0 commit comments

Comments
 (0)