builder-next: disable mergeop and diffop
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> Signed-off-by: Bjorn Neergaard <bneergaard@mirantis.com>
This commit is contained in:
parent
8c87641258
commit
0ac3bf837b
1 changed files with 15 additions and 0 deletions
|
@ -49,6 +49,9 @@ import (
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"go.etcd.io/bbolt"
|
"go.etcd.io/bbolt"
|
||||||
bolt "go.etcd.io/bbolt"
|
bolt "go.etcd.io/bbolt"
|
||||||
|
|
||||||
|
"github.com/moby/buildkit/solver/pb"
|
||||||
|
"github.com/moby/buildkit/util/apicaps"
|
||||||
)
|
)
|
||||||
|
|
||||||
func newController(ctx context.Context, rt http.RoundTripper, opt Opt) (*control.Controller, error) {
|
func newController(ctx context.Context, rt http.RoundTripper, opt Opt) (*control.Controller, error) {
|
||||||
|
@ -165,6 +168,18 @@ func newGraphDriverController(ctx context.Context, rt http.RoundTripper, opt Opt
|
||||||
dist := opt.Dist
|
dist := opt.Dist
|
||||||
root := opt.Root
|
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
|
var driver graphdriver.Driver
|
||||||
if ls, ok := dist.LayerStore.(interface {
|
if ls, ok := dist.LayerStore.(interface {
|
||||||
Driver() graphdriver.Driver
|
Driver() graphdriver.Driver
|
||||||
|
|
Loading…
Reference in a new issue