-
Notifications
You must be signed in to change notification settings - Fork 4
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
Cleanup issuer controller #42
Cleanup issuer controller #42
Conversation
ac07a05
to
c0c5ea2
Compare
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
c0c5ea2
to
4029d77
Compare
fmt.Sprintf("Issuer is not ready yet: %s", err), | ||
) | ||
r.EventRecorder.Event(issuer, corev1.EventTypeWarning, eventIssuerRetryableError, message) | ||
return result, issuerStatusPatch, err // apply patch, requeue with backoff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can now directly return the error to trigger a reconciliation, because the other path returns an error too (using reconcile.TerminalError
).
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
…nderstand Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Co-authored-by: Maël Valais <mael@vls.dev> Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
da154b6
to
b3d3097
Compare
Thanks for having addressed my comments. I think I’m good with the new changes. /lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inteon 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 |
I tried to make the issuer-controller logic a bit easier to read.
Additionally, this PR updates the Message in some of the Issuer conditions to match the event messages (eg. "Succeeded checking the issuer" instead of "checked").