-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add secretTemplate to Certificate resources created by ingress-shim #6839
Add secretTemplate to Certificate resources created by ingress-shim #6839
Conversation
Hi @mangeshhambarde. Thanks for your PR. I'm waiting for a 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. 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. |
Signed-off-by: Mangesh Hambarde <[email protected]>
Signed-off-by: Mangesh Hambarde <[email protected]>
1ff6f6e
to
44a0e3f
Compare
Signed-off-by: Mangesh Hambarde <[email protected]>
44a0e3f
to
f3bfc93
Compare
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.
/lgtm
/approve
Looks great, thank you for this! Feels like we can be confident about this with the tests being there 😁 🚀
/ok-to-test |
[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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Namespace: gen.DefaultTestNamespace, | ||
Annotations: map[string]string{ | ||
cmapi.IngressClusterIssuerNameAnnotationKey: "issuer-name", | ||
cmapi.IngressSecretTemplate: `{ "annotations": { "example-annotation" : "dummy-value" }, "labels": { "example-label" : "dummy-value" } }`, |
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.
I think it will be easier to read and create these annotations if there was a separate annotation for SecretTemplateAnnotations and SecretTemplateLabels.
/test pull-cert-manager-master-e2e-v1-28-upgrade |
can you pls help me, i try to add this in my ingress config but have this error |
you might want to wrap the whole thing in |
Pull Request Motivation
These are the changes for implementing #6838.
This allows ingress-shim users to set the
secretTemplate
field on generatedCertificate
resources. This makes using secret sync tools (e.g. kubernetes-reflector) much simpler for ingress-shim users.Added a new Ingress annotation
cert-manager.io/secret-template
whose value is a JSON representation ofsecretTemplate
.Kind
feature
Release Note