-
Notifications
You must be signed in to change notification settings - Fork 712
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
Extend metadata in details panel for Weave Net nodes #1973
Conversation
You are wrong. |
OK, I will work on that next, but let's merge this first |
I find the "#" notation a bit odd. I don't think we are using that elsewhere. |
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.
Please bounce back for follow-up.
WeaveProxyAddress = "weave_proxy_address" | ||
WeavePluginTableID = "weave_plugin_table" | ||
WeavePluginStatus = "weave_plugin_status" | ||
WeavePluginDriver = "weave_plugin_driver" |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
weaveMetadata = report.MetadataTemplates{ | ||
WeaveVersion: {ID: WeaveVersion, Label: "Version", From: report.FromLatest, Priority: 1}, | ||
WeaveProtocol: {ID: WeaveProtocol, Label: "Protocol", From: report.FromLatest, Priority: 2}, | ||
WeavePeerName: {ID: WeavePeerName, Label: "Peer Name", From: report.FromLatest, Truncate: 17, Priority: 3}, |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
|
||
switch err.(type) { | ||
case *docker_client.Error: | ||
// This is really ugly, but there's no way around it :( |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
) | ||
} | ||
return r, nil | ||
} | ||
|
||
func (w *Weave) getPeerNode(peer weave.Peer) report.Node { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
var pluginAPIVersion = "1" | ||
var ( | ||
pluginAPIVersion = "1" | ||
dockerEndpoint = "unix:///var/run/docker.sock" |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
} | ||
// Peer corresponding to current host | ||
if peer.Name == w.statusCache.Router.Name { | ||
latests[report.HostNodeID] = w.hostID |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
We are (in the container count of the container image topology). I tried to be consistent here but I can happily change it. |
The notation there is "# CONTAINERS: 2", not "CONTAINERS: #2". |
Ops, my bad, will fix |
Everything should now be addressed (and fixed a bug on the way). @jml Thanks for the review, please take another look. Here's a screenshot after the fixes: |
"DEF. SUBNET"? Why not spell it out? I recommend using exactly the same keys as in the And why do the keys take up so much horizontal space, instead of leaving that to the values? Hence the unfortunate truncation of the proxy address. |
} | ||
Targets []string | ||
TrustedSubnets []string | ||
} |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Fixes #1938
Here's how it looks:
There's still no connections table, that will come later. I don't see it critical for the kubecon deadline, but let me know if I am wrong.