Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added skeleton firecracker provider #39

Merged
merged 2 commits into from
Aug 9, 2021
Merged

Conversation

richardcase
Copy link
Member

@richardcase richardcase commented Jul 29, 2021

What this PR does / why we need it:

Refactored the existing microvm provider package to remove the provider registry and lazy init. Initially we will only have 1 provider and perhaps add an additional one (cloud hypervisor) in the future and so we don't need a registry.

The functions of the firecracker provider are just skeletons and return errors in most instances. The functions will be added
over time.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #37
Fixes #38

Special notes for your reviewer:

Checklist:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

Release note:

Added skeleton firecracker provider

Refactored the existing microvm provider package to remove
the provider registry and lazy init. Initially we will only
have 1 provider and perhaps add an additional one (cloud
hypervisor) in the future and so we don't need a registry.

The functions of the firecracker provider are just skeletons and
return errors in most instances. The functions will be added
over time.

Signed-off-by: Richard Case <[email protected]>
@richardcase richardcase added the kind/feature New feature or request label Jul 29, 2021
pkg/microvm/capabilitities.go Outdated Show resolved Hide resolved
pkg/microvm/capabilitities.go Outdated Show resolved Hide resolved
pkg/microvm/firecracker/config.go Outdated Show resolved Hide resolved
pkg/microvm/firecracker/errors.go Outdated Show resolved Hide resolved
pkg/microvm/firecracker/errors.go Show resolved Hide resolved
pkg/microvm/firecracker/provider.go Show resolved Hide resolved
pkg/microvm/firecracker/provider.go Show resolved Hide resolved
pkg/microvm/provider.go Outdated Show resolved Hide resolved
Various changes as a result of code review. The most significant
being that the flags are now added using the supplied command
and not the supplied flagset.

Signed-off-by: Richard Case <[email protected]>
@richardcase richardcase merged commit 7f5f095 into main Aug 9, 2021
@richardcase richardcase deleted the reactive_planning branch August 9, 2021 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request size/m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create skeleton of Firecracker provider Refactor microvm provider interface
2 participants