- new struct: createNodeOpts for wait and timeout values
- new commands for creating/adding multiple nodes which then wait for
all nodes to be up, if specified
- tests/e2e: new test for adding a master node
Args:cobra.ExactArgs(1),// exactly one name accepted // TODO: if not specified, inherit from cluster that the node shall belong to, if that is specified
Args:cobra.ExactArgs(1),// exactly one name accepted // TODO: if not specified, inherit from cluster that the node shall belong to, if that is specified
log.Errorln("Failed to bring up all nodes in time. Check the logs:")
log.Errorf(">>> %+v",err)
returnfmt.Errorf("Failed to add nodes")
}
returnnil
}
// CreateNodes creates a list of nodes
// CreateNodes creates a list of nodes
funcCreateNodes(ctxcontext.Context,runtimeruntimes.Runtime,nodes[]*k3d.Node){// TODO: pass `--atomic` flag, so we stop and return an error if any node creation fails?
funcCreateNodes(ctxcontext.Context,runtimeruntimes.Runtime,nodes[]*k3d.Node,createNodeOptsk3d.CreateNodeOpts)error{// TODO: pass `--atomic` flag, so we stop and return an error if any node creation fails?