Use hardware namespace and name as provider ID #177
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Abhinav Pandey abhinavmpandey08@gmail.com
Description
This PR changes the
machine.spec.providerID
to be of the formattinkerbell://{hardware.namespace}/{hardware.name}
instead of usingUID
becauseUID
can change if a hardware is recreated/moved andmachine.spec.providerID
is immutable so CAPT runs into errors like this:This new
providerID
was suggested here: https://github.com/tinkerbell/cluster-api-provider-tinkerbell/pull/160/files#r869807167How Has This Been Tested?
Created a cluster with the modified CAPT, performed a cluster move operation and verified that the
cluster
andmachines
were Ready and there were no errors in CAPT.How are existing users impacted? What migration steps/scripts do we need?
No user impact
Checklist:
I have: