tinkerbell / cluster-api-provider-tinkerbell

Cluster API Infrastructure Provider
Apache License 2.0
91 stars 35 forks source link

Use netboot.AllowPXE to determine hardware ready status #367

Closed ahreehong closed 3 months ago

ahreehong commented 3 months ago

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: