Skip to content
This repository has been archived by the owner on Jun 19, 2022. It is now read-only.

Use consistent informer and lister for dependency tracking #1883

Merged

Conversation

Ectelion
Copy link
Contributor

Fixes #1835

Proposed Changes

Refer to knative/eventing#4296 for a relevant change. Same informer/lister construct for tracking dependencies was inherited by the trigger reconciler in the GCP repo.

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ectelion

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-cla google-cla bot added the cla: yes (override cla status due to multiple authors bug) label Oct 31, 2020
func (t testHelper) ReadyDependencyStatus() *duckv1.KResource {
kr := &duckv1.KResource{}
func (t testHelper) ReadyDependencyStatus() *duckv1.Source {
kr := &duckv1.Source{}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we can replace all kr in this file with like src.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, have addressed that.

@@ -141,7 +141,7 @@ func (ts *TriggerStatus) MarkDependencyNotConfigured() {
"DependencyNotConfigured", "Dependency has not yet been reconciled.")
}

func (ts *TriggerStatus) PropagateDependencyStatus(ks *duckv1.KResource) {
func (ts *TriggerStatus) PropagateDependencyStatus(ks *duckv1.Source) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, replace ks and kc to something more related to Source.

Copy link
Contributor

@danyinggu danyinggu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved cla: yes (override cla status due to multiple authors bug) lgtm size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Figure out if we need knative/eventing#4296
4 participants