[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
Signed-off-by: Hubert Zhang <hubert.zyk@gmail.com>
Signed-off-by: Hubert Zhang <hubert.zyk@gmail.com>
|
ping @mitake @ptabor @serathius |
Signed-off-by: Hubert Zhang <hubert.zyk@gmail.com>
jmhbnz
left a comment
There was a problem hiding this comment.
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 <hubert.zyk@gmail.com>
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 <hubert.zyk@gmail.com>
(cherry picked from commit 75747f2) Signed-off-by: Hubert Zhang <hubert.zyk@gmail.com>
Signed-off-by: Chao Chen <chaochn@amazon.com>
02b2ef0 to
a1aaa51
Compare
|
PR rebased @ahrtr |
|
@HubertZhang Please raise a separate PR to update the 3.5 changelog. |
Signed-off-by: Hubert Zhang <hubert.zyk@gmail.com>
|
Changelog PR is #15983 |
backport of #12469 to release 3.5, which enables using unix socket setup an embed server