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

Feature/power on machine for inventory #109

Merged

Conversation

aobort
Copy link
Contributor

@aobort aobort commented Jun 13, 2024

What this PR does / why we need it:
added:

  • Inventory controller which sets machine.spec.inventoryRef if it is nil and machine.spec.power to "PowerOff" after that
  • Machine controller will set machine.spec.power to "PowerOn" in case machine.spec.inventoryRef is nil and machine.status.state is "Initial" or empty

It is needed to boot newly created machine and collect inventory data.

Which issue(s) this PR fixes:
Fixes #103

Special notes for your reviewer:
Tests are not adopted to changes in this PR. Three oob tests will fail because it is expected that machine does not change it's spec.power field. Adding spec.inventoryRef and setting spec.power to "PowerOff` prior to test case main checks fixes the issue.

Release note:
NONE

@github-actions github-actions bot enabled auto-merge (squash) June 13, 2024 05:08
@aobort aobort requested a review from Gchbg June 13, 2024 05:09
Gchbg
Gchbg previously approved these changes Jun 13, 2024
@aobort aobort force-pushed the feature/power-on-machine-for-inventory branch from 75bc841 to 380f6e9 Compare June 13, 2024 12:38
@aobort aobort force-pushed the feature/power-on-machine-for-inventory branch from 380f6e9 to cdf55e4 Compare June 13, 2024 12:40
@github-actions github-actions bot merged commit 846f435 into ironcore-dev:main Jun 13, 2024
7 checks passed
@aobort aobort deleted the feature/power-on-machine-for-inventory branch June 13, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Power on machine in initial state
2 participants