builder: fix breaking change on node fields

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-02-24 19:41:10 +01:00
parent 2e59ae7030
commit 9128f56258
5 changed files with 31 additions and 36 deletions

View File

@@ -80,7 +80,7 @@ export class Builder {
break;
}
case 'driver options': {
node.driverOpts = (value.match(/(\w+)="([^"]*)"/g) || []).map(v => v.replace(/^(.*)="(.*)"$/g, '$1=$2'));
node['driver-opts'] = (value.match(/(\w+)="([^"]*)"/g) || []).map(v => v.replace(/^(.*)="(.*)"$/g, '$1=$2'));
break;
}
case 'status': {
@@ -88,11 +88,11 @@ export class Builder {
break;
}
case 'flags': {
node.buildkitdFlags = value;
node['buildkitd-flags'] = value;
break;
}
case 'buildkit': {
node.buildkitVersion = value;
node.buildkit = value;
break;
}
case 'platforms': {