-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Fixing network inspect for swarm #37045
Conversation
Perhaps the NetworkInspect test should be updated for this? moby/integration/network/inspect_test.go Line 19 in 6d20814
(or a new one added without containers attached) |
@thaJeztah thanks. I added a check in there. |
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, thanks!
FAiled at: |
integration/network/inspect_test.go
Outdated
} | ||
} | ||
return false | ||
|
||
if network.IPAM.Config == nil { |
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.
Ah, looks like this is indented with spaces, likely this is where gofmt
is complaining about
Signed-off-by: Abhinandan Prativadi <abhi@docker.com>
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 🐯
Codecov Report
@@ Coverage Diff @@
## master #37045 +/- ##
==========================================
- Coverage 35.37% 35.09% -0.28%
==========================================
Files 615 615
Lines 45793 45793
==========================================
- Hits 16198 16070 -128
- Misses 27449 27614 +165
+ Partials 2146 2109 -37 |
Signed-off-by: Abhinandan Prativadi abhi@docker.com
docker network inspect
of a swarm network on a manager node was not displaying the subnet information unless there was a task in that network on manager node.- What I did
Fixed the GRPC conversion function
- How I did it
- How to verify it
- Description for the changelog
Fix network inspect for overlay network
- A picture of a cute animal (not mandatory but encouraged)