Skip to content

[release-1.18] improve error messages when resource creation fails#7964

Merged
cert-manager-prow[bot] merged 1 commit intocert-manager:release-1.18from
cert-manager-bot:cherry-pick-7928-to-release-1.18
Aug 15, 2025
Merged

[release-1.18] improve error messages when resource creation fails#7964
cert-manager-prow[bot] merged 1 commit intocert-manager:release-1.18from
cert-manager-bot:cherry-pick-7928-to-release-1.18

Conversation

@cert-manager-bot
Copy link
Copy Markdown
Contributor

This is an automated cherry-pick of #7928

/assign SgtCoDFish

Improve error messages when certificates, CRLs or private keys fail admission due to malformed or missing PEM data

The underlying errors were often being hidden, or else weren't clear
what was wrong.

Also fixes mixed indentation in checks_test.go

Signed-off-by: Ashley Davis <ashley.davis@cyberark.com>
@cert-manager-prow cert-manager-prow bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 15, 2025
Copy link
Copy Markdown
Member

@SgtCoDFish SgtCoDFish left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve
/kind cleanup

Simple cherry-pick for backporting

@cert-manager-prow cert-manager-prow bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Aug 15, 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 Aug 15, 2025
@cert-manager-prow cert-manager-prow bot merged commit 0751eed into cert-manager:release-1.18 Aug 15, 2025
6 checks passed
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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

2 participants