Use scope=swarm for service related network inspect and revendor docker/docker#184
Use scope=swarm for service related network inspect and revendor docker/docker#184aaronlehmann merged 2 commits intodocker:masterfrom yongtang:167-network-inspect-scope
Conversation
This fix updates docker/docker to 4310f7da7e6bcd8185bf05e032f9b7321cfa6ea2 This fix is related to moby/moby#33630 and #167 Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Codecov Report
@@ Coverage Diff @@
## master #184 +/- ##
==========================================
- Coverage 45.34% 45.33% -0.01%
==========================================
Files 171 171
Lines 11482 11480 -2
==========================================
- Hits 5206 5204 -2
Misses 5979 5979
Partials 297 297 |
|
Sorry for my ignorance about network scoping, but I see that the node-local networks PR (moby/moby#32981) says it added the The only comment I have on the code itself is that there are many places that specify |
|
I believe network scopes have existed since swarm was integrated, we just started exposing them to new endpoints more recently. So every swarm network should already have |
dnephin
left a comment
There was a problem hiding this comment.
+1 to @aaronlehmann comment about removing Verbose: false, since it's default.
How will this work with older daemons that don't accept that query param? I believe they will just ignore the unexpected param, which means the behaviour is not any different from using an older client. Does that sound right?
This fix use `scope=swarm` for service related network inspect. The purpose is that, in case multiple networks with the same name exist in different scopes, it is still possible to obtain the network for services. This fix is related to moby/moby#33630 and #167 Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
|
Thanks all for the review. The PR has been updated and now the unnecessary For moby/moby#32981, it adds allows a node-local network to be promoted to the |
|
LGTM |
This fix update docker/cli to 4c224a7 This fix brings change of docker/cli#184 to docker, which is needed by moby#30897 Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
…d-event-handler-exit [17.06] Fix when containerd restarted, event handler may exit


This fix updates docker/docker to 4310f7da7e6bcd8185bf05e032f9b7321cfa6ea2 and use
scope=swarmfor service related network inspect.This fix use
scope=swarmfor service related network inspect. The purpose is that, in case multiple networks with the same name exist in different scopes, it is still possible to obtain the network for services.This fix is related to #167, moby/moby#30897, moby/moby#33561, moby/moby#30242