-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
libpod: Podman info output more network information #18383
libpod: Podman info output more network information #18383
Conversation
0c3fcc7
to
de54f2e
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.
Thanks for doing this, I really like the idea. However I think it would be much better to move the logic directly into the networkBackend in c/common and then add a function there called Info() to return the info you want. Alo I would rather have a proper struct with the info then a generic map.
You can move packageVersion
and programVersion
to some c/common util package if needed.
libpod/define/info.go
Outdated
LogDriver string `json:"logDriver"` | ||
MemFree int64 `json:"memFree"` | ||
MemTotal int64 `json:"memTotal"` | ||
NetworkBackend map[string]interface{} `json:"networkBackend"` |
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.
This is a breaking change and thus cannot be made, I suggest adding a new NetworkBackendInfo field.
@sstosh what say you? |
@flouthoc OK. I also will try to add the feature to show the details of aardvark-dns. |
de54f2e
to
e72699c
Compare
e72699c
to
2d84e30
Compare
The output is as shown below: networkBackend: netavark
networkBackendInfo:
aardvark-package: aardvark-dns-1.6.0-1.fc37.x86_64
aardvark-path: /usr/libexec/podman/aardvark-dns
aardvark-version: aardvark-dns 1.6.0
netavark-package: netavark-1.6.0-2.fc37.x86_64
netavark-path: /usr/libexec/podman/netavark
netavark-version: netavark 1.6.0 networkBackend: cni
networkBackendInfo: null |
2d84e30
to
8fc9c80
Compare
@sstosh Thank you 😄 output LGTM |
8e44954
to
ea5a7e3
Compare
@sstosh Can you rebase, the new c/common is merged into main. |
ea5a7e3
to
3303fc6
Compare
1b215e9
to
11f7f0a
Compare
11f7f0a
to
6f82163
Compare
podman info prints the network information about binary path, package version, program version and DNS information. Fixes: containers#18443 Signed-off-by: Toshiki Sonoda <[email protected]>
The review is ready. |
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 @sstosh
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, thank you
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, Luap99, sstosh 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 |
/lgtm |
podman info prints the network information about binary path,
package version, program version and DNS information.
Fixes: #18443
cni info
netavark info
Does this PR introduce a user-facing change?