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

Sync change from Klutch upstream #35

Open
wants to merge 6 commits into
base: remove-resources
Choose a base branch
from

Conversation

abdulhaseeb3
Copy link
Contributor

WARNING: Only users listed in the CODEOWNERS file can approve PRs!

@abdulhaseeb3 abdulhaseeb3 changed the base branch from main to remove-resources January 7, 2025 08:09
@abdulhaseeb3 abdulhaseeb3 force-pushed the sync-changes branch 4 times, most recently from b04e575 to 5bc1534 Compare January 9, 2025 12:41
Our confighealth reconciler performs a health check HTTP request to the anynines service broker and writes the result to the providerconfig's status field.

Previously, one Golang context with a timeout was used for both the health check and the subsequent patching of providerconfig's status. However, if the health check request exceeded the timeout, the patching of the status field could never succeed. client-go's Patch() method would error with a "context deadline exceeded" error message.

This commit introduces a separate sub-context for the health check request, which has an explicit timeout, while using the parent context (which does not time out) for patching the status field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant