Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pkg/limayaml/limayaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,19 @@ type User struct {
}

type VMOpts struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type VMOpts struct {
type VMOpts map[string]any

QEMU QEMUOpts `yaml:"qemu,omitempty" json:"qemu,omitempty"`
QEMU QEMUOpts `yaml:"qemu,omitempty" json:"qemu,omitempty"`
Docker DockerOpts `yaml:"docker,omitempty" json:"docker,omitempty"`
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This contradicts to the current VM driver design.
Driver details must not be put to the yaml definition

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a pointer to the new "opts"?
Is that somewhere in the mega-PR perhaps

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, so there is no actual code for it yet


type QEMUOpts struct {
MinimumVersion *string `yaml:"minimumVersion,omitempty" json:"minimumVersion,omitempty" jsonschema:"nullable"`
CPUType CPUType `yaml:"cpuType,omitempty" json:"cpuType,omitempty" jsonschema:"nullable"`
}

type DockerOpts struct {
Runtime *string `yaml:"runtime,omitempty" json:"runtime,omitempty" jsonschema:"nullable"`
}

type Rosetta struct {
Enabled *bool `yaml:"enabled,omitempty" json:"enabled,omitempty" jsonschema:"nullable"`
BinFmt *bool `yaml:"binfmt,omitempty" json:"binfmt,omitempty" jsonschema:"nullable"`
Expand Down
5 changes: 5 additions & 0 deletions templates/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,11 @@ vmOpts:
# armv7l: "max" # (or "host" when running on armv7l host)
# riscv64: "max" # (or "host" when running on riscv64 host)
# x86_64: "max" # (or "host" when running on x86_64 host; additional options are appended on Intel Mac)
docker:
# The container runtime to use when running.
# Will be ignored if the vmType is not "docker"
# 🟢 Builtin default: none (use daemon default)
runtime: null

# OS: "Linux".
# 🟢 Builtin default: "Linux"
Expand Down
Loading