-
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
🐛 Fix to enable bootstrap secret rotation if the secret itself missing #7717
🐛 Fix to enable bootstrap secret rotation if the secret itself missing #7717
Conversation
|
Welcome @bdehri! |
Hi @bdehri. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/retest |
Before reviewing the PR I would like to better understand in which case the bootstrap token for a machine poll can expire, given that we are continuously refreshing it. |
I have the same question. Although the fix itself seems relatively harmless, in the worst case it's just dead code that is never reached. /cc @mboersma |
/test pull-cluster-api-test-main |
Hello @CecileRobertMichon, @fabriziopandini, At the moment, cause of the deletion is unknown to us and we could not reproduce the issue in a reliable manner. We found that it happens some time passed after initial deployment. Until we discover the root cause, we wanted to make the code more resilient against such issues. |
@bdehri understood. In that case given
I'm okay with this fix if we add a code comment to explain why we need it |
lgtm pending squash |
53657a6
to
ad5b522
Compare
@fabriziopandini Just a quick reminder (to everyone :)). We can now - if we want to - lgtm before the squash and the lgtm label will be preserved. |
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
/approve
LGTM label has been added. Git tree hash: 3ea0fd87ab9b2836ab010b3bbf2ee392adb774ca
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon 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 |
Seems to fall under "bugs without easy workarounds" /cherry-pick release-1.3 |
/cherry-pick release-1.2 |
@sbueringer: new pull request created: #7853 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@sbueringer: new pull request created: #7854 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
When the bootstrap token is expired and the respective secret is already cleaned up, MachinePools cannot be scaled up due to missing token. In order to mitigate this issue, the secret can be rotated if it is missing.
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 #6029