-
Notifications
You must be signed in to change notification settings - Fork 148
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
Add StartOnAddress function to listen on unix:// paths #165
Conversation
@@ -61,6 +61,12 @@ func (m *MockCSIDriver) Start() error { | |||
return nil | |||
} | |||
|
|||
// StartOnAddress starts a new gRPC server listening on a random TCP loopback port. | |||
func (m *MockCSIDriver) Start() error { |
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.
Comment doesn't match the method.
I know it wasn't document before either (or at least not here), but when using random port allocation, how does the caller determine how to reach the mock driver, i.e. determine the port?
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.
Good catch, comment is fixed now. Caller can call MockCSIDriver.Address()
to get the actual address.
ba7d9d3
to
ddb689f
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane, pohly 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 |
@lpabon, can you please release new version of csi-test? It blocks kubernetes-csi/external-attacher#123 |
I'd like to see PR #156 merged first. Then the new release becomes the first real-world test of image publishing with those build rules. |
Cherry-pick #165 to release-1.0: Add StartOnAddress function to listen on unix:// paths
Add StartOnAddress function to listen on unix:// paths
…hub-links-ref-to-master-to-HEAD docs: make github links reference HEAD instead of master
No description provided.