E533 Refactor containerd `NewWorkerOpt` & containerdexecutor `New` parameters by Benehiko · Pull Request #5086 · moby/buildkit · GitHub
[go: up one dir, main page]

Skip to content

Conversation

Benehiko
Copy link
Contributor
@Benehiko Benehiko commented Jun 25, 2024

The function parameters of containerd.NewWorkerOpt and containerdexecutor.New are too long making it hard to read. This PR condenses the parameters into a singular struct.

The struct naming could be adjusted, but since I'm not too familiar with the code I tried to stick with something similar to the package and function name.

Based off of this discussion #5033 (comment)

Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
Copy link
Member
@jedevc jedevc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also do this for worker/runc? It's not quite as difficult to read as the containerd executor, but it's still quite painful.

@tonistiigi tonistiigi merged commit 4490066 into moby:master Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0