Skip to content

Conversation

afbjorklund
Copy link
Member

Make it possible to select between "runc" and "runv", etc.

Validation is done later (by the driver), if actually used.

Required by: (currently hardcoded)

Make it possible to select between "runc" and "runv", etc.

Validation is done later (by the driver), if actually used.

Signed-off-by: Anders F Björklund <[email protected]>
@@ -107,14 +107,19 @@ type User struct {
}

type VMOpts struct {
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

@@ -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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants