-
Notifications
You must be signed in to change notification settings - Fork 544
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
feat(catalog): add grpc sourcetype to CatalogSources #656
Conversation
da77153
to
ead6afc
Compare
ead6afc
to
5d361c7
Compare
/retest |
5d361c7
to
e18d26c
Compare
/retest |
1 similar comment
/retest |
e18d26c
to
11f63a1
Compare
grpc sourcetype takes a new `image` field which specifies an image which is expected to serve a registry API over grpc on port 50051.
11f63a1
to
123d9c8
Compare
@ecordell: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
resolver resolver.Resolver | ||
subQueue workqueue.RateLimitingInterface | ||
catSrcQueue workqueue.RateLimitingInterface | ||
reconciler reconciler.ReconcilerReconciler |
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.
🔥 still prefer ReconcilerFactory
.
} | ||
sourceKey := resolver.CatalogKey{Name: catsrc.GetName(), Namespace: catsrc.GetNamespace()} | ||
func() { |
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.
Why does this need to execute in an anonymous function if the outer function returns immediately after this (ie. No real work is being done between the lock and the return)?
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 future changes, this keeps the unlock close to to the reason we're locking.
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 understand that - was just commenting on this specific case - it makes sense to be consistent with the rest of the codebase.
EnsureRegistryServer(catalogSource *v1alpha1.CatalogSource) error | ||
} | ||
|
||
type ReconcilerReconciler interface { |
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.
see other comment on ReconcilerReconciler
name.
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
Looks great overall. A few nits, but nothing to block over.
/lgtm
/bark
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ecordell, njhale 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 |
These changes have been pulled into #670 |
The grpc sourcetype takes a new
image
field which specifies an image which is expected to serve a registry API over grpc on port 50051.