Skip to content

Improve source error handling - #623

Merged
cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
erikgb:improve-source-error-handling
Jun 5, 2025
Merged

cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
erikgb:improve-source-error-handling

Conversation

@erikgb

@erikgb erikgb commented May 4, 2025 •

Copy link
Copy Markdown
Member

Fixes #434, at least as much as I think we can achieve without writing our own stricter PEM parser, as golang/go#34069 was rejected in the Go stdlib.

I tried to align the status and event messages, but I am not 100% happy with the implementation. Please let me know what you think. I'll be ok with reverting some of the changes, but I would love to keep the incremental addition of certificates to the CertPool introduced in this PR. Joining and then splitting strings is not a nice solution...

@cert-manager-prow

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@cert-manager-prow cert-manager-prow Bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 4, 2025
@cert-manager-prow cert-manager-prow Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 30, 2025
Signed-off-by: Erik Godding Boye <[email protected]>
@erikgb
erikgb force-pushed the improve-source-error-handling branch from 2a5efad to aa54408 Compare May 31, 2025 11:39
@cert-manager-prow cert-manager-prow Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 31, 2025
@erikgb

erikgb commented May 31, 2025

Copy link
Copy Markdown
Member Author

/test all

@erikgb

erikgb commented May 31, 2025

Copy link
Copy Markdown
Member Author

/test pull-trust-manager-integration

@erikgb erikgb changed the title WIP: Improve source error handling Improve source error handling May 31, 2025
@erikgb
erikgb marked this pull request as ready for review May 31, 2025 19:48
@cert-manager-prow cert-manager-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 31, 2025
@erikgb
erikgb requested review from SgtCoDFish and inteon May 31, 2025 19:49

@SgtCoDFish SgtCoDFish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

Makes sense from a quick look - thanks!

@cert-manager-prow cert-manager-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 5, 2025
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SgtCoDFish

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 5, 2025
@cert-manager-prow
cert-manager-prow Bot merged commit a0e68b2 into cert-manager:main Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update bundle status with error when encountering problem with sources files

2 participants