Skip to content
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

Merged
merged 1 commit into from
Feb 12, 2019

Conversation

jsafrane
Copy link
Contributor

No description provided.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 11, 2019
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 11, 2019
@jsafrane
Copy link
Contributor Author

cc @pohly, @msau42

@@ -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 {
Copy link
Contributor

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?

Copy link
Contributor Author

@jsafrane jsafrane Feb 12, 2019

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.

https://github.com/kubernetes-csi/external-attacher/blob/8f63c2c34b250355e73fa2d91e6cc65ea72f9645/pkg/connection/connection_test.go#L64-L67

Copy link
Contributor

@pohly pohly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 12, 2019
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 12, 2019
@k8s-ci-robot k8s-ci-robot merged commit 9d4a466 into kubernetes-csi:master Feb 12, 2019
@jsafrane
Copy link
Contributor Author

@lpabon, can you please release new version of csi-test? It blocks kubernetes-csi/external-attacher#123

@pohly
Copy link
Contributor

pohly commented Feb 14, 2019

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.

k8s-ci-robot added a commit that referenced this pull request Feb 15, 2019
Cherry-pick #165 to release-1.0: Add StartOnAddress function to listen on unix:// paths
suneeth51 pushed a commit to suneeth51/csi-test that referenced this pull request Sep 11, 2019
Add StartOnAddress function to listen on unix:// paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants