-
Notifications
You must be signed in to change notification settings - Fork 606
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
Generic code for Certificates #8489
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8489 +/- ##
=======================================
Coverage 62.62% 62.62%
=======================================
Files 396 396
Lines 24231 24231
=======================================
Hits 15175 15175
Misses 8247 8247
Partials 809 809 ☔ View full report in Codecov by Sentry. |
) | ||
|
||
func CertificateName(sinkName string) string { | ||
return kmeta.ChildName(sinkName, "-server-tls") | ||
} | ||
|
||
func MakeCertificate(sink *v1alpha1.IntegrationSink) *cmv1.Certificate { | ||
func MakeCertificate(sink kmeta.OwnerRefableAccessor, name string) *cmv1.Certificate { |
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.
@pierDipi I found this as a way to pass in generic types
Should we move this to (and perhaps adding a simple test) |
/test unit-tests |
Signed-off-by: Matthias Wessendorf <[email protected]>
/test unit-tests |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matzew, pierDipi 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 |
/retest-required |
@matzew: The following tests failed, say
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-sigs/prow repository. I understand the commands that are listed here. |
Fixes #
Proposed Changes
Pre-review Checklist
Release Note
Docs