-
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
Apiseversource reconciler and e2e for v1beta1 #3627
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
Needs 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 |
@@ -180,6 +182,10 @@ func (l *Listers) GetApiServerSourceV1alpha2Lister() sourcev1alpha2listers.ApiSe | |||
return sourcev1alpha2listers.NewApiServerSourceLister(l.indexerFor(&sourcesv1alpha2.ApiServerSource{})) | |||
} | |||
|
|||
func (l *Listers) GetApiServerSourceV1beta1Lister() sourcev1beta1listers.ApiServerSourceLister { |
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.
Should this be added to pkg/testing/listers.go as well?
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 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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