-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
[release-3.5]pkg/types: Support Unix sockets in NewURLS #15940
Conversation
Please signoff the commits. https://github.com/etcd-io/etcd/pull/15940/checks?check_run_id=13690537425 |
acc308b
to
007a338
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.
Signed-off-by: Hubert Zhang <[email protected]>
Signed-off-by: Hubert Zhang <[email protected]>
ping @mitake @ptabor @serathius |
Signed-off-by: Hubert Zhang <[email protected]>
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.
Backport itself looks correct - My only reservation is that it doesn't look like any follow-up e2e tests were added as requested in #12469 (review). Unsure if that should block this backport or not?
I guess e2e test needs to add UDS support here. Right now only http(s) schema is supported in e2e test. I am thinking of adding those as part of verification of POC of #15145 (comment) in case that migration will break UDS users.. Is it the desired direction before I making these changes? @ahrtr @serathius @jmhbnz Just to be clear: I meant the changes are only the test cases to verify authority header are sent properly in case of UDS in e2e test environment. Integration test already covers that though in https://github.com/etcd-io/etcd/blob/main/tests/integration/grpc_test.go#L31 without embed etcd or run etcd as process. |
Should I backport that #16037 in this PR also? |
Go for it. I just slimmed through 3.5 test code, it should be similar as the original change with minor adjustments.
BTW, this comment sounds like need to be addressed before the merge. |
@HubertZhang Please follow comment above #15940 (comment), thx |
adc64c4
to
02b2ef0
Compare
@ahrtr @chaochn47 I've cherry picked #16037 into this PR. Since there is no |
Signed-off-by: Hubert Zhang <[email protected]>
This is never officially supported by gRPC. So users should not use this URL to dial etcd in the first place. In addition, etcd 3.5 v3 client transforms this URL to |
To be clearer,
|
Can you please rebase this PR? |
Resolves etcd-io#12450 This commits adds support to unix/unixs socket URLs, which currently fail with the message "URL address does not have the form "host:port". It also replaces the work started in etcd-io#11747. (cherry picked from commit d93b7c8) Signed-off-by: Hubert Zhang <[email protected]>
(cherry picked from commit 75747f2) Signed-off-by: Hubert Zhang <[email protected]>
Signed-off-by: Chao Chen <[email protected]>
02b2ef0
to
a1aaa51
Compare
PR rebased @ahrtr |
@HubertZhang Please raise a separate PR to update the 3.5 changelog. |
Signed-off-by: Hubert Zhang <[email protected]>
Changelog PR is #15983 |
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
backport of #12469 to release 3.5, which enables using unix socket setup an embed server