Skip to content

Commit

Permalink
Hide empty replicasets
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-uk committed Aug 1, 2019
1 parent f85c69e commit 52ae45b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/client/src/components/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ export default {
for(let obj of kubeObjs) {
if(!this.filterShowNode(obj)) continue
let objId = `${type}_${obj.metadata.name}`
// This skips and hides sets without any replicas
if(obj.status) {
if(obj.status.replicas == 0) continue;
}
// Add special "group" node for the set
this.addGroup(type, obj.metadata.name)
Expand Down

0 comments on commit 52ae45b

Please sign in to comment.