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

fix(cfapi): requeue after DB error #121

Merged
merged 1 commit into from
May 21, 2024
Merged

fix(cfapi): requeue after DB error #121

merged 1 commit into from
May 21, 2024

Conversation

terinjokes
Copy link
Contributor

The Origin CA API occasionally returns error code 1100 signaling a failure to write the certificate to the database. This reconciler intepreted this error as a permament failure, despite no local issues.

This changeset detects this error code and requeues the CertificateRequest with controller-runtime's default backoff behavior.

Fixes: #115
Fixes: #116

@terinjokes terinjokes requested a review from a team May 16, 2024 22:20
pkgs/controllers/certificaterequest.go Outdated Show resolved Hide resolved
@terinjokes terinjokes force-pushed the terin/apierror branch 3 times, most recently from 241b0f9 to 3ab8e94 Compare May 17, 2024 07:40
The Origin CA API occasionally returns error code 1100 signaling a
failure to write the certificate to the database. This reconciler
intepreted this error as a permament failure, despite no local issues.

This changeset detects this error code and requeues the
CertificateRequest with controller-runtime's default backoff behavior.

Fixes: #115
Fixes: #116
@terinjokes terinjokes merged commit 3ab8e94 into trunk May 21, 2024
11 checks passed
@terinjokes terinjokes deleted the terin/apierror branch May 21, 2024 10:56
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.

Random certificate missbehavior. Any options for the retry?
3 participants