Skip to content

Remove SetCertificateRequestConditionError#188

Open
inteon wants to merge 5 commits intocert-manager:mainfrom
inteon:remove_SetCertificateRequestConditionError
Open

Remove SetCertificateRequestConditionError#188
inteon wants to merge 5 commits intocert-manager:mainfrom
inteon:remove_SetCertificateRequestConditionError

Conversation

@inteon
Copy link
Copy Markdown
Member

@inteon inteon commented Nov 27, 2024

Instead of returning SetCertificateRequestConditionError, we now have 3 return values for the sign function. we now return a SignResult value.

Using the WithExtraConditions option, we can set the custom conditions on a CertificateRequest/ CertificateSigningRequest resource.

@cert-manager-prow cert-manager-prow Bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 27, 2024
@inteon inteon force-pushed the remove_SetCertificateRequestConditionError branch from 5564e5d to 7360a53 Compare May 27, 2025 18:55
@cert-manager-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign wallrj for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@inteon inteon force-pushed the remove_SetCertificateRequestConditionError branch from 7360a53 to 33b083f Compare May 27, 2025 19:17
@inteon inteon force-pushed the remove_SetCertificateRequestConditionError branch 3 times, most recently from c906759 to ee11618 Compare June 23, 2025 13:01
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.

Got a few comments on this one - I see what you're aiming for.

On a broader note, while I recognise we're v0 with issuer-lib it definitely feels harder to stomach breaking changes in this repo now. There are multiple issuers working today which import this lib: https://pkg.go.dev/github.com/cert-manager/issuer-lib@v0.9.0/controllers?tab=importedby

The dev UX of us making a breaking change really blows, even if we've warned people that it could happen. If we changed the import path (by pushing a new major version for every breaking change) it'd be a lot less painful for downstream consumers.

I'd be supportive of marking issuer-lib as v1 without making any breaking changes, and then immediately working on v2 which could include breaking changes. I don't think that hurts anyone!

Comment thread controllers/signer/interface.go Outdated
Comment thread examples/simple/controller/signer.go
Comment thread controllers/signer/interface.go Outdated
Comment thread controllers/signer/err_set_condition.go
@maelvls
Copy link
Copy Markdown
Member

maelvls commented Jan 19, 2026

we're v0 with issuer-lib it definitely feels harder to stomach breaking changes in this repo now. There are multiple issuers working today which import this lib: https://pkg.go.dev/github.com/cert-manager/issuer-lib@v0.9.0/controllers?tab=importedby

I totally agree with Ash. Pre-v1 projects are just too much of a pain, and there is no reason to cause that pain, especially since it would cost almost no effort to cut a v1 now.

Regardless of whether the project is v1 material or not, let's avoid needlessly causing pain. Cloudflare folks will thank us.

Note that lots of people are developing custom issuers behind closed curtains. We probably only see 1% of the users of this project.

Comment thread controllers/request_controller.go Outdated
@inteon inteon force-pushed the remove_SetCertificateRequestConditionError branch 2 times, most recently from e89ad9e to a0aefe2 Compare January 21, 2026 09:11
@cert-manager-prow cert-manager-prow Bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 21, 2026
@inteon inteon force-pushed the remove_SetCertificateRequestConditionError branch from a0aefe2 to cc6c051 Compare January 21, 2026 09:47
@cert-manager-prow cert-manager-prow Bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jan 21, 2026
@inteon inteon force-pushed the remove_SetCertificateRequestConditionError branch from cc6c051 to e81f61a Compare January 21, 2026 10:13
@inteon inteon requested review from SgtCoDFish and maelvls January 21, 2026 10:41
Comment thread controllers/signer/sign_result.go
Comment thread controllers/signer/sign_result.go Outdated
Comment thread controllers/signer/sign_result.go Outdated
Comment thread controllers/signer/sign_result.go Outdated
//
// All other fields of the condition are ignored and will be set by the
// controller automatically.
func WithExtraConditions(conditions ...metav1.Condition) interface {
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.

could you add a code snippet showing how an implementor would use this? that would greatly help me see how it's meant to be used

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I added this to our example issuer: 19dd427

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
…signing async

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
@inteon inteon force-pushed the remove_SetCertificateRequestConditionError branch from 274a803 to 19dd427 Compare February 25, 2026 10:35
@cert-manager-prow cert-manager-prow Bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Feb 25, 2026
@inteon inteon requested a review from maelvls February 25, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants