Skip to content

Commit

Permalink
fix(internal): Only set options if not set on cli (#1916)
Browse files Browse the repository at this point in the history
Reviewed-by: Alexander Jung <[email protected]>
Approved-by: Alexander Jung <[email protected]>
  • Loading branch information
nderjung authored Nov 12, 2024
2 parents f9a01f1 + 741e2a6 commit 547a324
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/cli/kraft/pkg/packager_kraftfile_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,12 @@ func (p *packagerKraftfileRuntime) Pack(ctx context.Context, opts *PkgOptions, a
kconfigs = append(kconfigs, kc.String())
}

opts.Platform = targ.Platform().Name()
opts.Architecture = targ.Architecture().Name()
if opts.Platform == "" {
opts.Platform = targ.Platform().Name()
}
if opts.Architecture == "" {
opts.Architecture = targ.Architecture().Name()
}
}

treemodel, err := processtree.NewProcessTree(
Expand Down

0 comments on commit 547a324

Please sign in to comment.