Skip to content
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

Handle race condition when upgrading capi CRDs #2841

Merged

Conversation

g-gaston
Copy link
Member

Description of changes:
More info about the issue and the root cause: kubernetes-sigs/cluster-api#10032

This patch just detects when this error happens and sends an interrupt signal to the process. This should trigger a "graceful shutdown" in programs using controller-runtime. That should "wait" for ongoing requests to finish and stop the program. This way, the container gets restarted and the problematic cache gets cleaned up.

It's possible I might change this patch to something different after talking to capi folks, but at least this fixes the issue in the short term so we can get the tests rolling.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot eks-distro-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 22, 2024
@g-gaston g-gaston force-pushed the capi-1.6.0-patch-crd-race-condition branch 2 times, most recently from de8a503 to dfff637 Compare January 23, 2024 01:47
@g-gaston g-gaston force-pushed the capi-1.6.0-patch-crd-race-condition branch from dfff637 to 5ecd7df Compare January 23, 2024 15:18
@g-gaston
Copy link
Member Author

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: g-gaston

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@g-gaston
Copy link
Member Author

/hold

@jaxesn
Copy link
Member

jaxesn commented Jan 23, 2024

/test all

@jaxesn
Copy link
Member

jaxesn commented Jan 23, 2024

/test cluster-api-tooling-presubmit

@jaxesn
Copy link
Member

jaxesn commented Jan 23, 2024

/unhold

@eks-distro-bot eks-distro-bot merged commit 39b26ff into aws:main Jan 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants