fixes #617: change delimeter for nodeselector

Signed-off-by: Michal Augustyn <michal.augustyn@mail.com>
pull/622/head
Michal Augustyn 4 years ago
parent 4fec647b9d
commit 7a227bd2e6

@ -125,7 +125,7 @@ Passes additional driver-specific options. Details for each driver:
- `image=IMAGE` - Sets the container image to be used for running buildkit.
- `namespace=NS` - Sets the Kubernetes namespace. Defaults to the current namespace.
- `replicas=N` - Sets the number of `Pod` replicas. Defaults to 1.
- `nodeselector="label1=value1,label2=value2"` - Sets the kv of `Pod` nodeSelector. No Defaults. Example `nodeselector=kubernetes.io/arch=arm64`
- `nodeselector="label1=value1;label2=value2"` - Sets the kv of `Pod` nodeSelector. No Defaults. Use `;` to split labels. Example `nodeselector=kubernetes.io/arch=arm64`
- `rootless=(true|false)` - Run the container as a non-root user without `securityContext.privileged`. [Using Ubuntu host kernel is recommended](https://github.com/moby/buildkit/blob/master/docs/rootless.md). Defaults to false.
- `loadbalance=(sticky|random)` - Load-balancing strategy. If set to "sticky", the pod is chosen using the hash of the context path. Defaults to "sticky"

@ -92,7 +92,7 @@ func (f *factory) New(ctx context.Context, cfg driver.InitConfig) (driver.Driver
}
deploymentOpt.Image = bkimage.DefaultRootlessImage
case "nodeselector":
kvs := strings.Split(strings.Trim(v, `"`), ",")
kvs := strings.Split(strings.Trim(v, `"`), ";")
s := map[string]string{}
for i := range kvs {
kv := strings.Split(kvs[i], "=")

Loading…
Cancel
Save