Skip to content

Commit

Permalink
builder-next: disable mergeop and diffop
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Bjorn Neergaard <bneergaard@mirantis.com>
(cherry picked from commit 0ac3bf8)
Signed-off-by: Bjorn Neergaard <bneergaard@mirantis.com>
  • Loading branch information
tonistiigi authored and neersighted committed Mar 16, 2023
1 parent 9740b68 commit d43958b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions builder/builder-next/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ import (
"github.com/moby/buildkit/worker"
"github.com/pkg/errors"
bolt "go.etcd.io/bbolt"

"github.com/moby/buildkit/solver/pb"
"github.com/moby/buildkit/util/apicaps"
)

func newController(rt http.RoundTripper, opt Opt) (*control.Controller, error) {
Expand All @@ -49,6 +52,18 @@ func newController(rt http.RoundTripper, opt Opt) (*control.Controller, error) {
dist := opt.Dist
root := opt.Root

pb.Caps.Init(apicaps.Cap{
ID: pb.CapMergeOp,
Enabled: false,
DisabledReasonMsg: "only enabled with containerd image store backend",
})

pb.Caps.Init(apicaps.Cap{
ID: pb.CapDiffOp,
Enabled: false,
DisabledReasonMsg: "only enabled with containerd image store backend",
})

var driver graphdriver.Driver
if ls, ok := dist.LayerStore.(interface {
Driver() graphdriver.Driver
Expand Down

0 comments on commit d43958b

Please sign in to comment.