Skip to content

Commit

Permalink
drop unnecessary containerd worker init code
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Preminger committed Nov 6, 2023
1 parent 94d5653 commit 6f64c71
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/pkg/build/buildkit/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,10 @@ func setDefaultConfig(cfg *config.Config) {
if cfg.Workers.OCI.Platforms == nil {
cfg.Workers.OCI.Platforms = formatPlatforms(archutil.SupportedPlatforms(false))
}
if cfg.Workers.Containerd.Platforms == nil {
cfg.Workers.Containerd.Platforms = formatPlatforms(archutil.SupportedPlatforms(false))
}

sylog.Debugf("cfg.Workers.OCI.Platforms: %#v", cfg.Workers.OCI.Platforms)

cfg.Workers.OCI.NetworkConfig = setDefaultNetworkConfig(cfg.Workers.OCI.NetworkConfig)
cfg.Workers.Containerd.NetworkConfig = setDefaultNetworkConfig(cfg.Workers.Containerd.NetworkConfig)

if userns.RunningInUserNS() {
// if buildkitd is being executed as the mapped-root (not only EUID==0 but also $USER==root)
Expand Down

0 comments on commit 6f64c71

Please sign in to comment.