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: add mgmt endpoint & cli command for infra machine reboot #826

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

utkuozdemir
Copy link
Member

Introduce a new mgmt endpoint to reboot an infra machine and wait for the reboot request to be processed by the respective infra provider. It does the heavy lifting of modifying/waiting for the resources.

Additionally:

  • In the InfraMachineController, to verify that the machine info was collected before powering it off, check the TalosVersion on the MachineStatus instead of SecureBootStatus. It is a more suitable field to check this.
  • Rename the infra provider label prefix format from being omni.sidero.dev/infra-provider[provider-id]/key=value to be omni.sidero.dev/infra-provider/provider-id/key=value.

Introduce a new mgmt endpoint to reboot an infra machine and wait for the reboot request to be processed by the respective infra provider. It does the heavy lifting of modifying/waiting for the resources.

Additionally:
- In the `InfraMachineController`, to verify that the machine info was collected before powering it off, check the `TalosVersion` on the `MachineStatus` instead of `SecureBootStatus`. It is a more suitable field to check this.
- Rename the infra provider label prefix format from being `omni.sidero.dev/infra-provider[provider-id]/key=value` to be `omni.sidero.dev/infra-provider/provider-id/key=value`.

Signed-off-by: Utku Ozdemir <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants