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.
The function parameters of
containerd.NewWorkerOpt
andcontainerdexecutor.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 https://github.com/moby/buildkit/pull/5033#discussion_r1638659585