Skip to content

Commit

Permalink
Merge pull request #1063 from dougborg/custom-rootless-image-fix
Browse files Browse the repository at this point in the history
Only set default rootless image if it is not already customized
  • Loading branch information
tonistiigi authored Apr 13, 2022
2 parents b7c4fe5 + 79de2c5 commit d64428c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion driver/kubernetes/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ func (f *factory) New(ctx context.Context, cfg driver.InitConfig) (driver.Driver
if err != nil {
return nil, err
}
deploymentOpt.Image = bkimage.DefaultRootlessImage
if _, isImage := cfg.DriverOpts["image"]; !isImage {
deploymentOpt.Image = bkimage.DefaultRootlessImage
}
case "nodeselector":
kvs := strings.Split(strings.Trim(v, `"`), ",")
s := map[string]string{}
Expand Down

0 comments on commit d64428c

Please sign in to comment.