Apiserversource defaults conversion#3616
Conversation
|
/hold wait until #3614 gets merged and then rebase |
|
/assign @nachocano @lionelvillard |
|
The coverage is low is because |
|
Got kind of confused because the coding style when doing conversion is not quite consistent in the codebase. |
|
/unhold |
|
The following is the coverage report on the affected files.
|
| }, | ||
| URI: path, | ||
| } | ||
| sinkUri, _ := apis.ParseURL("http://example.com/path") |
There was a problem hiding this comment.
apis.ParseURL is used in a lot of places in the codebase. I will just keep it for now. We can change all of them in another PR.
|
|
||
| tests := []struct { | ||
| name string | ||
| in apis.Convertible |
There was a problem hiding this comment.
Changing this with *v1beta1.ApiServerSource could make things easier later.
Examples I saw so far are like that.
But not a big deal.
There was a problem hiding this comment.
I followed the
here. I think at first we useapis.Convertible so that we will be able provide different versions of sources as in. But now we use proxy when doing the conversion and the api v1beta1 and v1alpha2 apiserversource are the same, therefore if the in in the UT is the highest verison, when it does conversion, it will also test the conversion between middle versions and lowest version, so both *v1beta1.ApiServerSource and apis.Convertible work
There was a problem hiding this comment.
For now, I will keep apis.Convertible since it's more flexible
|
DeepCopy is not needed in the conversion code. |
|
/lgtm @capri-xiyue can you address @aliok comments in the reconciler/e2e follow up? |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aliok, capri-xiyue, nachocano 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 |
|
|
/retest
…On Fri, Jul 17, 2020 at 10:29 AM Knative test reporter robot < ***@***.***> wrote:
The following jobs failed:
Test name Triggers Retries
pull-knative-eventing-integration-tests 0/3
Failed non-flaky tests preventing automatic retry of
pull-knative-eventing-integration-tests:
test/e2e.TestChannelChain
test/e2e.TestChannelChain/Channel-messaging.knative.dev/v1
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#3616 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABD65DEN5T4MXVBHKCQGDN3R4CDA7ANCNFSM4O5CUXFQ>
.
|
|
The following jobs failed:
Failed non-flaky tests preventing automatic retry of pull-knative-eventing-upgrade-tests: |
|
/test pull-knative-eventing-upgrade-tests |
Helps #3611
Proposed Changes