-
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
Consume Operator Registry from PackageManifest Server #650
Consume Operator Registry from PackageManifest Server #650
Conversation
@@ -0,0 +1,16 @@ | |||
apiVersion: apiextensions.k8s.io/v1beta1 |
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.
Added these for use with registry-server in unit tests.
1410c3c
to
2ac7a95
Compare
if client.source.GetNamespace() == namespace || client.source.GetNamespace() == p.globalNamespace || namespace == "" { | ||
logger.Debugf("found CatalogSource %s", client.source.GetName()) | ||
// Start up forwarders. | ||
p.forward(ctx, logger, add, pkgTransform(addPkg)) |
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.
super nit: pkgTransform
to me suggests that this Transform
will mutate the events. I'd prefer a naming that suggested that it's just a filter, e.g. addEventFilter := pkgTransform(addPkg)
76bbdd7
to
4e1df36
Compare
defer cancel() | ||
|
||
// Signal that the subscriber's channel is being written to and is not safe to close. | ||
info.wg.Add(1) |
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.
Some additional protection against subscriptions ending.
65bc7c0
to
383751d
Compare
smu sync.RWMutex | ||
cmu sync.RWMutex | ||
globalNamespace string | ||
clients []registryClient |
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.
shouldn't this be a map from a sourcekey (name, namespace) to a registryclient?
383751d
to
a26f157
Compare
6bf1e0e
to
3922fc6
Compare
07f45d6
to
7c004cf
Compare
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
/retest |
1 similar comment
/retest |
b26b3f8
to
7e84cc6
Compare
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
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alecmerdler, 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 |
/retest |
4 similar comments
/retest |
/retest |
/retest |
/retest |
- Consumes from registry pods - Removes in-mem Provider implementation - Removes watch capabilities - Fixes packageserver namespace watching
7e84cc6
to
196cc1c
Compare
New changes are detected. LGTM label has been removed. |
/retest |
3 similar comments
/retest |
/retest |
/retest |
@njhale: 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. |
…se-registry Consume Operator Registry from PackageManifest Server
Description
Continuation of 639 by @alecmerdler
Addresses https://jira.coreos.com/browse/ALM-831