|
|
|
@ -42,6 +42,7 @@ type createOptions struct {
|
|
|
|
|
flags string
|
|
|
|
|
configFile string
|
|
|
|
|
driverOpts []string
|
|
|
|
|
securityOpts []string
|
|
|
|
|
bootstrap bool
|
|
|
|
|
// upgrade bool // perform upgrade of the driver
|
|
|
|
|
}
|
|
|
|
@ -239,6 +240,11 @@ func runCreate(dockerCli command.Cli, in createOptions, args []string) error {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s, err := csvToMap(in.securityOpts)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if in.configFile == "" {
|
|
|
|
|
// if buildkit config is not provided, check if the default one is
|
|
|
|
|
// available and use it
|
|
|
|
@ -248,7 +254,7 @@ func runCreate(dockerCli command.Cli, in createOptions, args []string) error {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := ng.Update(in.nodeName, ep, in.platform, setEp, in.actionAppend, flags, in.configFile, m); err != nil {
|
|
|
|
|
if err := ng.Update(in.nodeName, ep, in.platform, setEp, in.actionAppend, flags, in.configFile, m, s); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -340,6 +346,7 @@ func createCmd(dockerCli command.Cli) *cobra.Command {
|
|
|
|
|
flags.StringVar(&options.configFile, "config", "", "BuildKit config file")
|
|
|
|
|
flags.StringArrayVar(&options.platform, "platform", []string{}, "Fixed platforms for current node")
|
|
|
|
|
flags.StringArrayVar(&options.driverOpts, "driver-opt", []string{}, "Options for the driver")
|
|
|
|
|
flags.StringArrayVar(&options.securityOpts, "security-opt", []string{}, "Options for the security profile of driver")
|
|
|
|
|
flags.BoolVar(&options.bootstrap, "bootstrap", false, "Boot builder after creation")
|
|
|
|
|
|
|
|
|
|
flags.BoolVar(&options.actionAppend, "append", false, "Append a node to builder instead of changing it")
|
|
|
|
|