Skip to content

Conversation

richardcase
Copy link
Member

@richardcase richardcase commented Dec 13, 2021

What this PR does / why we need it:

The API definitions for the MicrovmMachine was incorrectly spcified
FailureDomain which is a deprecated way to specify a failure domain.
This has been removed, and the code now looks for failure domain on the
Machine instead as this is the correct way.

Declarative placement has been introduced at the MicrovmCluster
level with the ability to set a static list of host endpoints to use
when creating microvms. This relies on the failure domain logic to
assign a Machine to one of the host endpoints.

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 #14

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@richardcase richardcase added area/api Indicates an issue or PR relates to the APIs area/controller Indicates an issue or PR related to the controllers kind/bug Something isn't working kind/feature New feature or request labels Dec 13, 2021
@richardcase richardcase mentioned this pull request Dec 13, 2021
4 tasks
@richardcase richardcase removed the kind/feature New feature or request label Dec 13, 2021
@richardcase richardcase changed the title WIP fix: failure domains reporting from microvmcluster fix: failure domains reporting from microvmcluster Dec 13, 2021
@richardcase richardcase marked this pull request as ready for review December 13, 2021 17:45
Callisto13
Callisto13 previously approved these changes Dec 14, 2021
yitsushi
yitsushi previously approved these changes Dec 14, 2021
@richardcase richardcase dismissed stale reviews from yitsushi and Callisto13 via f62417c December 16, 2021 09:08
The API definitions for the MicrovmMachine was incorrectly specify
**FailureDomain** which is a deprecated way to specify a failure domain.
This has been removed and the code now looks for failure domain on the
**Machine** instead as this is the correct way.

Declarative placement has been introduced at the **MicrovmCluster**
level with the ability to set a static list of host endpoints to use
when creating microvms. This relies on the failure domain logic to
assign a **Machine** to one of the host endpoints.

Signed-off-by: Richard Case <richard@weave.works>
@richardcase richardcase merged commit b789e90 into main Dec 16, 2021
@richardcase richardcase deleted the fix_failure_domains branch December 16, 2021 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api Indicates an issue or PR relates to the APIs area/controller Indicates an issue or PR related to the controllers kind/bug Something isn't working size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add FailureDomain support to cluster controller

3 participants