From 02c237abbd20e2b2c852ec13f010bbcc1a06499a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Lehmann?= Date: Tue, 21 Nov 2023 09:16:05 +0100 Subject: [PATCH] allow large layers to be pushed in chunks see https://github.com/containerd/containerd/pull/7459 --- .../github.com/containerd/containerd/remotes/docker/pusher.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/vendor/github.com/containerd/containerd/remotes/docker/pusher.go b/vendor/github.com/containerd/containerd/remotes/docker/pusher.go index a1ff300d7..eb62510c6 100644 --- a/vendor/github.com/containerd/containerd/remotes/docker/pusher.go +++ b/vendor/github.com/containerd/containerd/remotes/docker/pusher.go @@ -274,8 +274,6 @@ func (p dockerPusher) push(ctx context.Context, desc ocispec.Descriptor, ref str }, }) - // TODO: Support chunked upload - pushw := newPushWriter(p.dockerBase, ref, desc.Digest, p.tracker, isManifest) req.body = func() (io.ReadCloser, error) { @@ -283,7 +281,6 @@ func (p dockerPusher) push(ctx context.Context, desc ocispec.Descriptor, ref str pushw.setPipe(pw) return io.NopCloser(pr), nil } - req.size = desc.Size go func() { resp, err := req.doWithRetries(ctx, nil)