Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

config: Add firecracker as a supported hypervisor configuration#1043

Merged
egernst merged 2 commits into
kata-containers:masterfrom
sboeuf:fc_config
Dec 21, 2018
Merged

config: Add firecracker as a supported hypervisor configuration#1043
egernst merged 2 commits into
kata-containers:masterfrom
sboeuf:fc_config

Conversation

@sboeuf
Copy link
Copy Markdown

@sboeuf sboeuf commented Dec 17, 2018

In order to let the user choose firecracker hypervisor instead of
QEMU (from the configuration.toml), let's add it to the list of
supported hypervisors.

Fixes #1042

Depends-on: github.com/kata-containers/runtime#1044

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>

@sboeuf
Copy link
Copy Markdown
Author

sboeuf commented Dec 17, 2018

This relies on the introduction of FC as a hypervisor implementation of virtcontainers.

@sboeuf
Copy link
Copy Markdown
Author

sboeuf commented Dec 18, 2018

/test

@sboeuf
Copy link
Copy Markdown
Author

sboeuf commented Dec 18, 2018

Depends on #1044

@sboeuf
Copy link
Copy Markdown
Author

sboeuf commented Dec 18, 2018

@mcastelino PR updated.

Copy link
Copy Markdown

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

lgtm

I wonder if it's worth also updating configuration.toml.in to add the firecracker stanza (but commented out)?

Comment thread pkg/katautils/config.go
}

func newQemuHypervisorConfig(h hypervisor) (vc.HypervisorConfig, error) {
func newFirecrackerHypervisorConfig(h hypervisor) (vc.HypervisorConfig, error) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit: Adding the firecracker function above the existing one make reviewing this change harder ;(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, I did it alphabetical order. noted.

@sboeuf
Copy link
Copy Markdown
Author

sboeuf commented Dec 20, 2018

Depends on #1044

Eric Ernst and others added 2 commits December 20, 2018 15:02
In order to let the user choose firecracker hypervisor instead of
QEMU (from the configuration.toml), let's add it to the list of
supported hypervisors.

Fixes kata-containers#1042

Depends-on: github.com/kata-containers#1044

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
By breaking down updateRuntimeConfig() into smaller functions, this
commit prevents the function to grow a Go complexity higher than 15.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
@sboeuf
Copy link
Copy Markdown
Author

sboeuf commented Dec 20, 2018

/test

@mcastelino
Copy link
Copy Markdown
Contributor

mcastelino commented Dec 20, 2018

LGTM

Approved with PullApprove

@egernst egernst merged commit 0f6fb54 into kata-containers:master Dec 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants