cluster-api-provider-tinkerbell icon indicating copy to clipboard operation
cluster-api-provider-tinkerbell copied to clipboard

Use netboot.AllowPXE to determine hardware ready status

Open ahreehong opened this issue 1 year ago • 0 comments

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:

  1. Provision a cluster with CAPT
  2. Set a machine's firmware to network boot
  3. 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

ahreehong avatar May 08 '24 18:05 ahreehong