Print cert locations when re-signing fails#176
Conversation
Signed-off-by: Michail Resvanis <mresvani@redhat.com>
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mresvanis The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
WalkthroughThe change updates the error handling in the Changes
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (1)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/cluster_crypto/cert_key_pair.rs (1)
138-138: Excellent improvement to error context.Adding certificate locations to the error message will significantly help users identify problematic certificates during re-signing failures. This aligns perfectly with the PR objective and improves the debugging experience.
Small formatting suggestion: Remove the extra space before the comma between the two format arguments for consistency.
-#[context["re-signing cert {} with subject {}", self.distributed_cert.borrow().locations ,self.distributed_cert.borrow().certificate.subject]] +#[context["re-signing cert {} with subject {}", self.distributed_cert.borrow().locations, self.distributed_cert.borrow().certificate.subject]]
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
|
/test all |
|
/lgtm |
|
/override ci/prow/e2e-aws-ovn-single-node-recert-parallel ci/prow/e2e-aws-ovn-single-node-recert-serial |
|
@mresvanis: Overrode contexts on behalf of mresvanis: ci/prow/e2e-aws-ovn-single-node-recert-parallel, ci/prow/e2e-aws-ovn-single-node-recert-serial DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This change adds the certificate locations to the
re_sign_cert(...)'s error message to have more information about the certificate that caused the error.For example, we currently have the following error message:
with this change we will have:
Summary by CodeRabbit