Skip to content

fix: exponential backoff and WaitingForSigning phase for CSR polling (#112)#127

Merged
slauger merged 2 commits intomainfrom
fix/112-csr-polling-backoff-v2
Mar 16, 2026
Merged

fix: exponential backoff and WaitingForSigning phase for CSR polling (#112)#127
slauger merged 2 commits intomainfrom
fix/112-csr-polling-backoff-v2

Conversation

@slauger
Copy link
Owner

@slauger slauger commented Mar 16, 2026

Summary

  • Replace fixed 5s requeue interval with exponential backoff (5s -> 30s -> 2min -> 5min) based on poll attempt count tracked via annotation on the pending Secret
  • After 10 failed attempts, transition to a new WaitingForSigning phase with a warning event guiding users to manually sign the CSR
  • Regenerate CRD manifests to include WaitingForSigning in the phase enum

Based on #126 by @mathildabot with CRD manifest fix.

Closes #112

Test plan

  • make generate manifests produces no diff
  • go build ./... passes
  • go vet ./... passes
  • go test ./internal/controller/... passes
  • Deploy and verify exponential backoff on pending CSRs
  • Verify WaitingForSigning phase after 10 failed polls

mathildabot and others added 2 commits March 16, 2026 15:27
…#112)

Replace fixed 5s requeue interval with exponential backoff (5s -> 30s ->
2min -> 5min) based on poll attempt count tracked via annotation on the
pending Secret. After 10 failed attempts, transition to a new
WaitingForSigning phase with a warning event guiding users to manually
sign the CSR.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@slauger slauger merged commit 8c40442 into main Mar 16, 2026
19 checks passed
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.

feat: exponential backoff and WaitingForSigning status for CSR polling

2 participants