-
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
Ensure k8s views are correctly hidden. #1241
Conversation
- Filter unconnected psuedo nodes from the Pods view - Don't report these filtered nodes in stats - Fix typo in logic for hiding views
@@ -58,12 +58,26 @@ func ColorConnected(r Renderer) Renderer { | |||
// Filter removes nodes from a view based on a predicate. | |||
type Filter struct { | |||
Renderer | |||
FilterFunc func(report.Node) bool | |||
FilterFunc func(report.Node) bool | |||
ReportFiltered bool // false means we don't report stats for how many are filtered |
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.
@paulbellamy PTAL |
The number of nodes filtered still seem odd. what 32 nodes are being filtered? Edit: attached report |
Also, I still think the SilentFilter thing seems overcomplicated and error-prone. e.g. It will still count the internet node being filtered out as part of the container renderer. |
I think the stats in the bottom left lag slightly; when I do this I get |
Mine's been showing |
Try refreshing? Otherwise its a UI bug. |
Ah yeah. Now I get 39 nodes (6 filtered), which is still wrong. It occurs to me that maybe any filters used in |
@paulbellamy yup, I agree. Have made them all silent now; which also means we need to silently filter some non-pseudo nodes. WDYT? |
LGTM. I take back what I said about SilentFilter not being the right abstraction. When applied to all the internal filters, it's great. |
Fixes #1214