Skip to content

Conversation

@jsternberg
Copy link
Collaborator

@jsternberg jsternberg commented Feb 26, 2025

The grpc client for containerd won't properly break up the writes for a
file when used in combination with bytes.NewReader and
content.WriteBlob.

To workaround the issue, this wraps the container image exporter for
containerd with a bytes reader that will chunk the Write calls instead
of relying on the client to do the chunking.

See containerd/containerd#11440 for the
upstream containerd issue.

closes #5327

@thompson-shaun thompson-shaun added this to the v0.20.1 milestone Feb 26, 2025
@jsternberg jsternberg force-pushed the containerd-grpc-size-limits branch from 8d99faf to 1caf5b4 Compare February 26, 2025 21:47
The grpc client for containerd won't properly break up the writes for a
file when used in combination with `bytes.NewReader` and
`content.WriteBlob`.

To workaround the issue, this wraps the container image exporter for
containerd with a bytes reader that will chunk the `Write` calls instead
of relying on the client to do the chunking.

See containerd/containerd#11440 for the
upstream containerd issue.

Signed-off-by: Jonathan A. Sternberg <[email protected]>
@jsternberg jsternberg force-pushed the containerd-grpc-size-limits branch from 1caf5b4 to 69d69b4 Compare February 27, 2025 15:30
@tonistiigi
Copy link
Member

@jsternberg I guess we don't need this and can just update containerd to v2.0.3

@jsternberg
Copy link
Collaborator Author

Going to close this in favor of just upgrading containerd.

@jsternberg jsternberg closed this Feb 28, 2025
@jsternberg jsternberg deleted the containerd-grpc-size-limits branch March 2, 2025 02:40
@crazy-max crazy-max removed this from the v0.20.1 milestone Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

adding SBOM fails with trying to send message larger than max (25286341 vs. 16777216): unknown

4 participants