Apiseversource reconciler and e2e for v1beta1#3627
Conversation
|
/assign @nachocano @lionelvillard |
Co-authored-by: Matt Moore <mattmoor@vmware.com>
|
/lgtm Thanks @capri-xiyue !!! |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
|
/test pull-knative-eventing-integration-tests |
1 similar comment
|
/test pull-knative-eventing-integration-tests |
done |
| return sourcev1alpha2listers.NewApiServerSourceLister(l.indexerFor(&sourcesv1alpha2.ApiServerSource{})) | ||
| } | ||
|
|
||
| func (l *Listers) GetApiServerSourceV1beta1Lister() sourcev1beta1listers.ApiServerSourceLister { |
There was a problem hiding this comment.
Should this be added to pkg/testing/listers.go as well?
There was a problem hiding this comment.
I created another follow up issue here: #3629
I think ideally we should only have one lister.go under pkg/testing or different versions of lister under different versions of package. I added it here because that's what v1alpha2 ApiSeverSource used. I think for container source, you can add it in either one now. Later, we can clean it up for all resources in #3629
There was a problem hiding this comment.
Yeah that makes sense. I was wondering the same thing. Container source test uses testing/listers.go so I'll add it there for now. But thanks for creating the issue!
There was a problem hiding this comment.
I took another look at the codebase. I think pkg/testing/v1 is for v1 resources, pkg/testing/v1beta1 is for v1beta1 resources. I think it's correct that I put lister under pkg/testing/v1beta1.
But unlike broker, sources use different code style. They don't create resources under specific version package.
I think we need another PR to clean it up
|
The following jobs failed:
Failed non-flaky tests preventing automatic retry of pull-knative-eventing-integration-tests: |
|
/test pull-knative-eventing-integration-tests |
|
It looks like currently for the code style of sources e2e tests, we duplicate a lot of code. |
Helps with #3611
Proposed Changes
Release Note