From fc1a41d2e551712f434eea5474a1a82b3570f72f Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 10 Mar 2023 19:33:52 +0100 Subject: [PATCH] set node name for k8s driver when appending nodes Signed-off-by: CrazyMax --- src/context.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/context.ts b/src/context.ts index ac640854..51d21843 100644 --- a/src/context.ts +++ b/src/context.ts @@ -78,6 +78,8 @@ export async function getAppendArgs(inputs: Inputs, node: Node, toolkit: Toolkit const args: Array = ['create', '--name', inputs.name, '--append']; if (node.name) { args.push('--node', node.name); + } else if (inputs.driver == 'kubernetes' && (await toolkit.buildx.versionSatisfies('<0.11.0'))) { + args.push('--node', `node-${uuid.v4()}`); } if (node['driver-opts'] && (await toolkit.buildx.versionSatisfies('>=0.3.0'))) { await Util.asyncForEach(node['driver-opts'], async driverOpt => {