Repository navigation
Add option to set custom annotations for HTTP01 resolver Ingress resources. - #2023
Conversation
|
Hi @zeeZ. Thanks for your PR. I'm waiting for a jetstack or cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
1085b3e to
2773f2e
Compare
2773f2e to
1a7c609
Compare
| // Optional additional annotations to add to Ingress resources used to solve ACME | ||
| // challenges that use this challenge solver. | ||
| // +optional | ||
| Annotations map[string]string `json:"annotations,omitempty"` |
There was a problem hiding this comment.
Instead of adding this field here directly, can you create an IngressTemplate field in a similar manner to the PodTemplate above?
|
Hey @zeeZ - sorry for the delay responding to this. I've added one comment above, if you're able to take a look into it, that'd be great 😄 This makes sense to include/resolve, I think we just need to update the API format slightly. |
|
/ok-to-test |
1a7c609 to
e758d55
Compare
|
Hey @munnerz, I finally managed to catch up with master an tried to include your suggestion about the template. It's mostly copied from the pod ones. I tried adding a test, but ran out of time to actually test it today, and I'm not sure if that's going in the right direction since I'm mostly unfamiliar with the project :D |
e758d55 to
f6a0770
Compare
|
Hi @munnerz - any more feedback? |
|
Issues go stale after 90d of inactivity. |
|
Stale issues rot after 30d of inactivity. |
|
Hey @zeeZ - sorry to get back to you after so long on this one. Would you still be interested in getting this PR updates so we can get it merged in? I think there's still quite a few people interested in the ability to customise metadata about the ingress resources we create 😄 |
f6a0770 to
ecbc232
Compare
|
Sure thing @munnerz! I didn't quite keep up with the changes since then, but the rebase wasn't too terrible. I'll have to chase documentation later. /remove-lifecycle rotten |
| // If labels or annotations overlap with in-built values, the values here | ||
| // will override the in-built values. | ||
| // +optional | ||
| ACMEChallengeSolverHTTP01IngressObjectMeta `json:"metadata,omitempty"` |
There was a problem hiding this comment.
I think we should remove omitempty here as it will have no effect because this field is not a pointer. Keep // +optional however as this is what dictates what our OpenAPI schema says 😄
There was a problem hiding this comment.
For the template and meta I mostly copied the ACMEChallengeSolverHTTP01IngressPodTemplate and ACMEChallengeSolverHTTP01IngressPodObjectMeta just above. Should I add those changes there as well while I'm at it?
| Annotations map[string]string `json:"annotations,omitempty"` | ||
|
|
||
| // Labels that should be added to the created ACME HTTP01 solver ingress. | ||
| Labels map[string]string `json:"labels,omitempty"` |
There was a problem hiding this comment.
Both these fields need // +optional
ecbc232 to
c460884
Compare
…resources. Signed-off-by: zeeZ <[email protected]>
c460884 to
1c96ea9
Compare
|
This lgtm 😄 thanks for your work going back and forth on this! Would you mind opening a PR against the docs repo to document this new field, similar to the /lgtm |
|
/milestone v0.15 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: munnerz, zeeZ The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
I'll try to get it done this week. |
|
Thanks for getting this together and persisting to get it merged! 😄 /hold cancel |
|
/kind feature |
What this PR does / why we need it:
Adds an option to the HTTP01 solver to add arbitrary annotations to new Ingress resources.
The todo read like it was meant to just keep on piling additional annotations in there, instead I made it an option.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): replaces pull #1782 and removes a todo that's been around for over two yearsSpecial notes for your reviewer:
I'm mostly unfamiliar with this project and its processes. This PR touches both a CRD object (by adding a new field) and changes behavior by removing the default nginx whitelist annotation on new ingresses. Is there anything else I need to do?
Release note: