-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Adds acme CertificateRequest controller #1943
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoshVanL 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 |
ee1928f
to
f4a6f2f
Compare
Looking good |
controllerpkg.Register(CRControllerName, func(ctx *controllerpkg.Context) (controllerpkg.Interface, error) { | ||
acme := NewACME(ctx) | ||
|
||
orderInformer := ctx.SharedInformerFactory.Certmanager().V1alpha1().Orders().Informer() |
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.
Should we also have a 'watch' on Issuer resources? Or does the existing CertificateRequest controller shared implementation already handle this?
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.
Indeed it does :)
certificateRequest: testCR, | ||
builder: &testpkg.Builder{ | ||
ExpectedEvents: []string{ | ||
`Normal ErrorGettingOrder Failed to get order resource default-unit-test-ns/test-cr-3958469914: this is a network error`, |
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.
Undecided whether network errors etc. should be bubbled up the events, as it could in turn place even more burden on the network. But let's think about that later 🙄
certificateRequest: testCR, | ||
builder: &testpkg.Builder{ | ||
ExpectedEvents: []string{ | ||
`Warning OrderFailed Failed to resolve order resource default-unit-test-ns/test-cr-3958469914: order is in failure state "invalid"`, |
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.
This message feels very mechanical for something that should be human-readable
4430543
to
460f271
Compare
/hold |
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
return nil, err | ||
} | ||
|
||
log = logf.WithResource(log, order) |
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.
This should be WithRelatedResource
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
/lgtm |
/retest |
/test pull-cert-manager-e2e-v1-15 |
/retest |
Adds the ACME CertificateRequest controller to resolve CertificateRequests that have an ACME issuer references.
TODO:
/assign