πŸ”ž ADULT: Docker/buildx/issues/ - Collection

Skip to content

nodeselector keyvalues are not parsed properly for kubernetes driverΒ #617

@MichalAugustyn

Description

@MichalAugustyn

Issue description

Based on the docs, it should be possible to pass multiple nodeselector keyvalues using

nodeselector="label1=value1,label2=value2"

By quoting the nodeselector value, it should be parsed with this line becoming a list of keyvalues.

It seems that the second keyvalue, label2 in this case, is treated as another driver-opt rather than a keyvalue for nodeselector. It might be caused by the way driver-opts are parsed (using csvToMap func).

Reproducing the issue

$ docker buildx create --driver kubernetes --driver-opt replicas=1,nodeselector="kubernetes.io/arch=arm64,kubernetes.io/arch=arm" --use
unruffled_elion
$ touch Dockerfile
$ docker buildx build . 
[+] Building 0.0s (0/0)                                                                                                                                                                       
error: no valid drivers found: invalid driver option kubernetes.io/arch for driver kubernetes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions