-
Notifications
You must be signed in to change notification settings - Fork 600
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
Apiserversource defaults conversion #3616
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use apis.HTTP()
here
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.
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.
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.
another clean up issue created #3623
|
||
tests := []struct { | ||
name string | ||
in apis.Convertible |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the
in apis.Convertible |
apis.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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, I will keep apis.Convertible since it's more flexible
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
Added some minor comments, feel free to skip it
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
Needs 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