-
Notifications
You must be signed in to change notification settings - Fork 545
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(catalogsource): allow grpc source types that don't require an image #709
feat(catalogsource): allow grpc source types that don't require an image #709
Conversation
4d923c1
to
6868037
Compare
// +Optional | ||
ConfigMap string `json:"configMap,omitempty"` | ||
|
||
// Address an address that OLM can use to connect to a pre-existing registry. |
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: "Address is a host that OLM...". Since one e2e failed, maybe it's worth fixing.
@@ -664,7 +666,7 @@ func (o *Operator) ensureResolverSources(logger *logrus.Entry, namespace string) | |||
logger.WithField("clientState", client.Conn.GetState()).Debug("source") | |||
if client.Conn.GetState() == connectivity.TransientFailure { | |||
logger.WithField("clientState", client.Conn.GetState()).Debug("waiting for connection") | |||
ctx, _ := context.WithTimeout(context.TODO(), 5*time.Second) | |||
ctx, _ := context.WithTimeout(context.TODO(), 2*time.Second) |
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 assume that was an arbitrary time out.
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 was playing with the timeouts - I'm changing it back, thanks for pointing it out. Yeah it's arbitrary. I really hope over the next sprint we can encapsulate connection logic into a separate module (I'm thinking a ConnectionManager
in a separate thread).
/lgtm |
/retest |
instead, they provide an address directly. OLM will not have visibility into the resources required for running the grpc catalog for this case, but will still connect and health check.
/retest |
1 similar comment
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jpeeler, 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 |
1 similar comment
/retest |
feat(catalogsource): allow grpc source types that don't require an image
instead, they provide an address directly. OLM will not have visibility
into the resources required for running the grpc catalog for this case,
but will still connect and health check.
Replaces #684