This repository was archived by the owner on Apr 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,9 +30,6 @@ export default (
3030 return emit ( { menuPattern } )
3131 }
3232
33- if ( clusterName ) return emit ( { menu : `Kubernetes ${ clusterName } ` } )
34- else if ( clusterId ) return emit ( { menu : `Kubernetes ${ clusterId } ` } )
35-
3633 switch ( part1 ) {
3734 case "ap" :
3835 case "net" :
@@ -66,7 +63,19 @@ export default (
6663 return emit ( { menu : part1 } )
6764 }
6865
66+ case "k8s" : {
67+ if ( part2 == "state" ) {
68+ if ( clusterName ) return emit ( { menu : `Kubernetes State ${ clusterName } ` } )
69+ else if ( clusterId ) return emit ( { menu : `Kubernetes State ${ clusterId } ` } )
70+ }
71+
72+ return emit ( { menu : `Kubernetes ${ part2 } ` } )
73+ }
74+
6975 case "cgroup" : {
76+ if ( clusterName ) return emit ( { menu : `Kubernetes Containers ${ clusterName } ` } )
77+ else if ( clusterId ) return emit ( { menu : `Kubernetes Containers ${ clusterId } ` } )
78+
7079 const menuPattern =
7180 id . match ( / .* [ . _ / - : ] q e m u [ . _ / - : ] * / ) || id . match ( / .* [ . _ / - : ] k v m [ . _ / - : ] * / ) ? "cgqemu" : "cgroup"
7281 const sectionTitle = parts . length === 1 ? "cgroups" : undefined
You can’t perform that action at this time.
0 commit comments