Feat: component-pod-view support filter resource by cluster name and cluster namespace (#2754)

This commit is contained in:
yangsoon
2021-11-21 14:56:01 +08:00
committed by GitHub
parent 32103f53fc
commit 99ffe80eb4
7 changed files with 155 additions and 103 deletions

View File

@@ -24,10 +24,11 @@ List the pods created by specified component
```
parameter: {
name: string // application name
namespace: string // application namespace
componentName: string // component name
cluster?: string // cluster name(Optional)
appName: string // application name
appNs: string // application namespace
name: string // component name
cluster?: string // cluster name(Optional)
clusterNs?: string // cluster namespace(Optional)
}
```
@@ -45,6 +46,7 @@ status: {
revision: string
publishVersion: string
podName: string
podNs: string
status: string
podIP: string
hostIP: string
@@ -61,7 +63,7 @@ status: {
#### demo
```sql
component-pod-view{name=demo,namespace=default,cluster=prod,componentName=web}.status
component-pod-view{appName=demo,appNs=default,cluster=prod,clusterNs=default,name=web}.status
```
### pod-view