Skip to content

Commit

Permalink
Merge pull request #2946 from weaveworks/expand-k8s-namespace-calcula…
Browse files Browse the repository at this point in the history
…tion

Expand the app's k8s namespace calculation
  • Loading branch information
rade authored Nov 21, 2017
2 parents 830cfc9 + 4e4c3b2 commit e93362e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/api_topologies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e93362e

Please sign in to comment.