Add Docker Create Params to Free-Form Map
This patch adds the Docker Create requests params map to the integration
driver's VolumeCreateOpts.Opts field as a new store.
@@ -188,6 +188,9 @@ func (d *driver) CreateVolume(
opts.Type = &v
}
}
+ if len(req.Parameters) > 0 {
+ opts.Opts = apiutils.NewStoreWithVars(req.Parameters)
+ }
// Use the integration driver to create the volume.
vol, err := d.client.Integration().Create(d.ctx, req.Name, opts)
