cluster-api-provider-tinkerbell
cluster-api-provider-tinkerbell copied to clipboard
Use netboot.AllowPXE to determine hardware ready status
Description
This PR changes CAPT to look at hardware.Spec.Interfaces[].netboot.AllowPXE to determine if the hardware is ready and gate network booting
Why is this needed
Gating of network booting in Smee now occurs via Hardware.Spec.Interfaces[].Netboot.AllowPXE, so we need to update the logic in CAPT
Fixes: https://github.com/tinkerbell/cluster-api-provider-tinkerbell/issues/363
How Has This Been Tested?
Tested manually following these steps:
- Provision a cluster with CAPT
- Set a machine's firmware to network boot
- Reboot the machine
and verified that the machine does not go into network boot after the reboot
Checklist:
I have:
- [ ] updated the documentation and/or roadmap (if required)
- [x] added unit or e2e tests
- [ ] provided instructions on how to upgrade