Merge pull request #1732 from milas/builder-init-panic

builder: extra init error handling
This commit is contained in:
CrazyMax
2023-04-26 09:23:01 +02:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@ -108,7 +108,7 @@ func New(dockerCli command.Cli, opts ...Option) (_ *Builder, err error) {
// Validate validates builder context
func (b *Builder) Validate() error {
if b.NodeGroup.DockerContext {
if b.NodeGroup != nil && b.NodeGroup.DockerContext {
list, err := b.opts.dockerCli.ContextStore().List()
if err != nil {
return err