-
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
[jjo] fix panic from acmedns.go constructor failure #858
[jjo] fix panic from acmedns.go constructor failure #858
Conversation
Signed-off-by: JuanJo Ciarlante <juanjosec@gmail.com>
/cc @Queuecumber |
@jjo: GitHub didn't allow me to request PR reviews from the following users: Queuecumber. Note that only jetstack members and repo collaborators can review this PR, and authors cannot review their own PRs. In 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/test-infra repository. |
Odd that this passed all the auto testing, I'll take a look ASAP and see if I can get a PR put together |
Nevermind this is a PR, probably shouldn't look at these on my phone. |
Thanks for this change @jjo! @Queuecumber or @jjo, would you be able to add some relevant unit test cases that cover the various different scenarios/states that the config can be in? i.e. a 'valid configuration', invalid, invalid data, missing, etc? You can see some previous examples of this for other DNS providers here: https://github.com/jetstack/cert-manager/blob/master/pkg/issuer/acme/dns/dns_test.go#L73 /ok-to-test |
Yeah I was thinking last night that this should have been part of the original PR. @jjo I can take care of this if you want |
@Queuecumber thanks!, I'd like to take a shot at it, actually tho :) |
d8bb77d
to
5e30168
Compare
Signed-off-by: JuanJo Ciarlante <juanjosec@gmail.com>
5e30168
to
225a37c
Compare
@Queuecumber @munnerz: added some |
Signed-off-by: JuanJo Ciarlante <juanjosec@gmail.com>
557176d
to
1266f41
Compare
Looks fine to me and the tests all pass, but my opinion counts for basically nothing around here so hopefully a team member can merge this soon |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: munnerz 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 |
Ignore the test failures - something has been changed in our testing infra 😬 |
/test chart-verify |
/test chart-verify |
What this PR does / why we need it:
Fixes cert-manager panic.
Which issue this PR fixes : #857
Special notes for your reviewer:
FYI tested on my live install, instead of panic-ing now properly getting
error instantiating acmedns challenge solver: invalid character '{'
from logs.The key fix is that last
err != nil
check inacme/dns/dns.go
switch/case entryfor
AcmeDNS
, to avoid following thru and wrongly returningimpl, nil
(with anil
impl pointer).Release note: