mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-19 01:47:43 +08:00
Only set default rootless image if it is not already customized
Only change the image to the default rootless image when using the --rootless option if the image has not already customized with the --image option. Fix #938 Signed-off-by: Doug Borg <dougborg@apple.com>
This commit is contained in:
parent
b8bcf1d810
commit
79de2c5d82
@ -108,7 +108,9 @@ func (f *factory) New(ctx context.Context, cfg driver.InitConfig) (driver.Driver
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
deploymentOpt.Image = bkimage.DefaultRootlessImage
|
if _, isImage := cfg.DriverOpts["image"]; !isImage {
|
||||||
|
deploymentOpt.Image = bkimage.DefaultRootlessImage
|
||||||
|
}
|
||||||
case "nodeselector":
|
case "nodeselector":
|
||||||
kvs := strings.Split(strings.Trim(v, `"`), ",")
|
kvs := strings.Split(strings.Trim(v, `"`), ",")
|
||||||
s := map[string]string{}
|
s := map[string]string{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user