-
Notifications
You must be signed in to change notification settings - Fork 74
Use consistent informer and lister for dependency tracking #1883
Use consistent informer and lister for dependency tracking #1883
Conversation
[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 |
func (t testHelper) ReadyDependencyStatus() *duckv1.KResource { | ||
kr := &duckv1.KResource{} | ||
func (t testHelper) ReadyDependencyStatus() *duckv1.Source { | ||
kr := &duckv1.Source{} |
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.
nit: we can replace all kr
in this file with like src
.
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.
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) { |
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.
same here, replace ks
and kc
to something more related to Source.
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
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.