mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-21 22:36:39 +00:00
Expand the app's k8s namespace calculation
to include recently added k8s types. This is all rather inefficient. See #2945.
This commit is contained in:
@@ -96,7 +96,8 @@ func updateSwarmFilters(rpt report.Report, topologies []APITopologyDesc) []APITo
|
||||
|
||||
func updateKubeFilters(rpt report.Report, topologies []APITopologyDesc) []APITopologyDesc {
|
||||
namespaces := map[string]struct{}{}
|
||||
for _, t := range []report.Topology{rpt.Pod, rpt.Service, rpt.Deployment} {
|
||||
// We exclude ReplicaSets since we don't show them anywhere.
|
||||
for _, t := range []report.Topology{rpt.Pod, rpt.Service, rpt.Deployment, rpt.DaemonSet, rpt.StatefulSet, rpt.CronJob} {
|
||||
for _, n := range t.Nodes {
|
||||
if state, ok := n.Latest.Lookup(kubernetes.State); ok && state == kubernetes.StateDeleted {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user