Skip to content

Adding driver-opts to append breaks #214

@DavidS-ovm

Description

@DavidS-ovm

Behaviour

Steps to reproduce this issue

- name: Set up Docker Buildx
  uses: docker/setup-buildx-action@v2
  with:
    driver: kubernetes
    platforms: linux/amd64
    driver-opts: |
      "namespace=buildkit"
      "nodeselector=""kubernetes.io/arch=arm64"""
    append: |
      - platforms: linux/arm64
        driver-opts: |
          "namespace=buildkit"
          "nodeselector=""kubernetes.io/arch=arm64"""

Expected behaviour

create a builder with one amd64 and one arm64 node using the same syntax

Actual behaviour

Appending the node fails with

   /usr/bin/docker buildx create --name builder-6f13477c-e275-4577-9162-3dd2922f93d1 --append --driver-opt n --driver-opt a --driver-opt m --driver-opt e --driver-opt s --driver-opt p --driver-opt a --driver-opt c --driver-opt e --driver-opt = --driver-opt b --driver-opt u --driver-opt i --driver-opt l --driver-opt d --driver-opt k --driver-opt i --driver-opt t --driver-opt 
   --driver-opt n --driver-opt o --driver-opt d --driver-opt e --driver-opt s --driver-opt e --driver-opt l --driver-opt e --driver-opt c --driver-opt t --driver-opt o --driver-opt r --driver-opt = --driver-opt " --driver-opt k --driver-opt u --driver-opt b --driver-opt e --driver-opt r --driver-opt n --driver-opt e --driver-opt t --driver-opt e --driver-opt s --driver-opt . --driver-opt i --driver-opt o --driver-opt / --driver-opt a --driver-opt r --driver-opt c --driver-opt h --driver-opt = --driver-opt a --driver-opt r --driver-opt m --driver-opt 6 --driver-opt 4 --driver-opt " --driver-opt 
   --platform linux/arm64
  ERROR: invalid value "n", expecting k=v

2023-03-07_11MS+0100_885x865

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions