mirror of
https://github.com/kubevela/kubevela.git
synced 2026-03-05 19:22:03 +00:00
* Feat: refactor CLI commands related to resources Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: remove the old test case. Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: e2e test Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: optimize test cases Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Feat: rename 'vela pods' to 'vela status --pod' Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Feat: optimize the e2e test case Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: sort the objects Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: optimize the e2e test case Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: list the pod by the labels Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: order the tree resource Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: set multicluster config Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
194 lines
3.3 KiB
CUE
194 lines
3.3 KiB
CUE
#ListResourcesInApp: {
|
|
#do: "listResourcesInApp"
|
|
#provider: "query"
|
|
app: {
|
|
name: string
|
|
namespace: string
|
|
filter?: {
|
|
cluster?: string
|
|
clusterNamespace?: string
|
|
components?: [...string]
|
|
kind?: string
|
|
apiVersion?: string
|
|
}
|
|
withStatus?: bool
|
|
}
|
|
list?: [...{
|
|
cluster: string
|
|
component: string
|
|
revision: string
|
|
object: {...}
|
|
}]
|
|
...
|
|
}
|
|
|
|
#ListAppliedResources: {
|
|
#do: "listAppliedResources"
|
|
#provider: "query"
|
|
app: {
|
|
name: string
|
|
namespace: string
|
|
filter?: {
|
|
cluster?: string
|
|
clusterNamespace?: string
|
|
components?: [...string]
|
|
kind?: string
|
|
apiVersion?: string
|
|
}
|
|
}
|
|
list?: [...{
|
|
name: string
|
|
namespace?: string
|
|
cluster?: string
|
|
component?: string
|
|
trait?: string
|
|
kind?: string
|
|
uid?: string
|
|
apiVersion?: string
|
|
resourceVersion?: string
|
|
publishVersion?: string
|
|
deployVersion?: string
|
|
revision?: string
|
|
latest?: bool
|
|
resourceTree?: {
|
|
...
|
|
}
|
|
}]
|
|
...
|
|
}
|
|
|
|
#CollectPods: {
|
|
#do: "collectResources"
|
|
#provider: "query"
|
|
app: {
|
|
name: string
|
|
namespace: string
|
|
filter?: {
|
|
cluster?: string
|
|
clusterNamespace?: string
|
|
components?: [...string]
|
|
kind: "Pod"
|
|
apiVersion: "v1"
|
|
}
|
|
withTree: true
|
|
}
|
|
list: [...{...}]
|
|
...
|
|
}
|
|
|
|
#CollectServices: {
|
|
#do: "collectResources"
|
|
#provider: "query"
|
|
app: {
|
|
name: string
|
|
namespace: string
|
|
filter?: {
|
|
cluster?: string
|
|
clusterNamespace?: string
|
|
components?: [...string]
|
|
kind: "Service"
|
|
apiVersion: "v1"
|
|
}
|
|
withTree: true
|
|
}
|
|
list: [...{...}]
|
|
...
|
|
}
|
|
|
|
#SearchEvents: {
|
|
#do: "searchEvents"
|
|
#provider: "query"
|
|
value: {...}
|
|
cluster: string
|
|
...
|
|
}
|
|
|
|
#CollectLogsInPod: {
|
|
#do: "collectLogsInPod"
|
|
#provider: "query"
|
|
cluster: string
|
|
namespace: string
|
|
pod: string
|
|
options: {
|
|
container: string
|
|
previous: *false | bool
|
|
sinceSeconds: *null | int
|
|
sinceTime: *null | string
|
|
timestamps: *false | bool
|
|
tailLines: *null | int
|
|
limitBytes: *null | int
|
|
}
|
|
outputs?: {
|
|
logs?: string
|
|
err?: string
|
|
info?: {
|
|
fromDate: string
|
|
toDate: string
|
|
}
|
|
...
|
|
}
|
|
...
|
|
}
|
|
|
|
#CollectServiceEndpoints: {
|
|
#do: "collectServiceEndpoints"
|
|
#provider: "query"
|
|
app: {
|
|
name: string
|
|
namespace: string
|
|
filter?: {
|
|
cluster?: string
|
|
clusterNamespace?: string
|
|
components?: [...string]
|
|
}
|
|
withTree: true
|
|
}
|
|
list?: [...{
|
|
endpoint: {
|
|
protocol: string
|
|
appProtocol?: string
|
|
host?: string
|
|
port: int
|
|
path?: string
|
|
inner?: bool
|
|
}
|
|
ref: {...}
|
|
cluster?: string
|
|
component?: string
|
|
...
|
|
}]
|
|
...
|
|
}
|
|
|
|
#GetApplicationTree: {
|
|
#do: "listAppliedResources"
|
|
#provider: "query"
|
|
app: {
|
|
name: string
|
|
namespace: string
|
|
filter?: {
|
|
cluster?: string
|
|
clusterNamespace?: string
|
|
components?: [...string]
|
|
}
|
|
withTree: true
|
|
}
|
|
list?: [...{
|
|
name: string
|
|
namespace?: string
|
|
cluster?: string
|
|
component?: string
|
|
trait?: string
|
|
kind?: string
|
|
uid?: string
|
|
apiVersion?: string
|
|
resourceVersion?: string
|
|
publishVersion?: string
|
|
deployVersion?: string
|
|
revision?: string
|
|
latest?: bool
|
|
...
|
|
}]
|
|
...
|
|
}
|