Merge pull request #3123 from stefanberger/extend_apply_call_with_options_parameter

Extend Applier's Apply() method with an optional options parameter
This commit is contained in:
Michael Crosby
2019-06-03 11:13:40 -04:00
committed by GitHub
6 changed files with 22 additions and 7 deletions

View File

@@ -99,8 +99,10 @@ func (l *local) Apply(ctx context.Context, er *diffapi.ApplyRequest, _ ...grpc.C
mounts = toMounts(er.Mounts)
)
var opts []diff.ApplyOpt
for _, differ := range l.differs {
ocidesc, err = differ.Apply(ctx, desc, mounts)
ocidesc, err = differ.Apply(ctx, desc, mounts, opts...)
if !errdefs.IsNotImplemented(err) {
break
}