Fixes #38549 - Add WOL capability to Host
The feature adds the ability to wake suspended Host by Wake on LAN. It requires a smart proxy with WOL feature.
Typically, when host has a network interface attached to a subnet where we manage the DHCP, the broadcast in such network is available. That's due to the core principle of DHCP protocol. In such network, it's possible to perform WOL, which also relies on broadcast. This patch adds WOL support for Host's primary interface as that's the one we run the DHCP orchestration on. This could be extended in future if we see the need to specify other host interface instead.
The Host's API loads the primary interface, checks the presence of the DHCP proxy and it's WOL capability. If it is available, it triggers the relevant API on the smart proxy and displays a toast notification.
This new action reuses the same permission we have for BMC (power management of the host).
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign vladikr for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
PR needs rebase.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.