Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a default value for hardware metadata state (#669)
## Description The metadata state field is consumed in CAPT for checking if a given hardware is [ready](https://github.com/tinkerbell/cluster-api-provider-tinkerbell/blob/main/controllers/machine.go#L97). The changes sets a default value for the field to `provisioning` with kubebuilder defaults. Currently this field is left empty. ## Why is this needed Boots and CAPT looks at `spec.metadata.state` to check if a hardware needs to be PXE served and if a hardware is ready. Today a user is not expected to set the field but defaulting to `provisioning` helps provide context to the starting state of the tinkerbell provisioning process.
- Loading branch information