Skip to content

Conversation

@matheuscscp
Copy link
Member

Backporting kubernetes-sigs#635 from upstream.

Thanks @levenleven!

There's no dedicated error type for rate limiter
"would exceed context deadline" error, hence we
check the error message
https://cs.opensource.google/go/x/time/+/refs/tags/v0.10.0:rate/rate.go;l=276

Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
@matheuscscp matheuscscp force-pushed the backport-upstream-635 branch from a7dae11 to 5288f56 Compare January 9, 2026 10:10
@matheuscscp matheuscscp merged commit 721fb3f into master Jan 9, 2026
2 checks passed
@matheuscscp matheuscscp deleted the backport-upstream-635 branch January 29, 2026 12:31
matheuscscp added a commit to fluxcd/pkg that referenced this pull request Jan 29, 2026
The workaround filtered out DeadlineExceeded errors from lastStatus
updates to prevent kstatus from polluting timeout error messages with
all monitored resources. This is no longer needed since cli-utils
v0.37.1-flux.1 (fluxcd/cli-utils#18) properly recognizes rate limiter
deadline errors as cancellation signals.

Add TestWaitForSet_RateLimiterError to verify that rate limiter errors
no longer cause all resources to appear in the timeout error message.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
matheuscscp added a commit to fluxcd/pkg that referenced this pull request Jan 29, 2026
The workaround filtered out DeadlineExceeded errors from lastStatus
updates to prevent kstatus from polluting timeout error messages with
all monitored resources. This is no longer needed since cli-utils
v0.37.1-flux.1 (fluxcd/cli-utils#18) properly recognizes rate limiter
deadline errors as cancellation signals.

Add TestWaitForSet_RateLimiterError to verify that rate limiter errors
no longer cause all resources to appear in the timeout error message.
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.

4 participants