-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌱 CAPD: make Machine bootstrap reentrant #7271
🌱 CAPD: make Machine bootstrap reentrant #7271
Conversation
/test pull-cluster-api-e2e-full-main |
91e8915
to
7e7af94
Compare
test/infrastructure/docker/internal/controllers/dockermachine_controller.go
Outdated
Show resolved
Hide resolved
} | ||
// We have to check here to make this reentrant for cases where the bootstrap works | ||
// but bootstrapped is never set on the object. We only try to bootstrap if the machine | ||
// is not already bootstrapped. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: what about deprecating bootstrapped and opening an issue for dropping it in the next API version now that we are relying on the file being created on the machine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I wasn't aware it's only used for this purpose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll deprecate the fields, removing it will be automatically done as part of bumping to the next release (either via the issue template we have or we should just in general always grep for deprecated stuff when we create a new apiVersion)
7e7af94
to
c62d113
Compare
Thx for the review. Findings should be addressed, PTAL :) |
/test pull-cluster-api-e2e-full-main |
test/e2e/data/infrastructure-docker/v1.2/cluster-template-topology.yaml
Outdated
Show resolved
Hide resolved
c62d113
to
7939ab1
Compare
/test pull-cluster-api-e2e-full-main |
7939ab1
to
38653d8
Compare
/test pull-cluster-api-e2e-full-main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
For follow-up inspection, following observation:
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Makes the machine bootstrap reentrant. Currently we might try to bootstrap a machine again even though it's already successfully bootstrapped.
Found during implementation of #7244
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #