mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
* refactor: use cuex engine Signed-off-by: FogDong <fog@bentoml.com> * fix: fix lint Signed-off-by: FogDong <fog@bentoml.com> * fix: fix unit test Signed-off-by: FogDong <fog@bentoml.com> * fix: fix static check and sdk tests Signed-off-by: FogDong <fog@bentoml.com> * fix: fix testdata Signed-off-by: FogDong <fog@bentoml.com> * fix: fix velaql unit test Signed-off-by: FogDong <fog@bentoml.com> * fix: fix docgen parser Signed-off-by: FogDong <fog@bentoml.com> * fix: fix cuegen Signed-off-by: FogDong <fog@bentoml.com> * fix: fix velaql Signed-off-by: FogDong <fog@bentoml.com> * fix: delete useless print Signed-off-by: FogDong <fog@bentoml.com> * fix: set client for ql Signed-off-by: FogDong <fog@bentoml.com> * fix: fix mt tests Signed-off-by: FogDong <fog@bentoml.com> * fix: set kubeclient in generator Signed-off-by: FogDong <fog@bentoml.com> * fix: use pass kube client Signed-off-by: FogDong <fog@bentoml.com> * fix: simplify ql Signed-off-by: FogDong <fog@bentoml.com> * fix: fix lint Signed-off-by: FogDong <fog@bentoml.com> * fix: add wf debug back Signed-off-by: FogDong <fog@bentoml.com> * fix: add loader Signed-off-by: FogDong <fog@bentoml.com> --------- Signed-off-by: FogDong <fog@bentoml.com>
196 lines
3.3 KiB
CUE
196 lines
3.3 KiB
CUE
#ListResourcesInApp: {
|
|
#do: "listResourcesInApp"
|
|
#provider: "ql"
|
|
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: "ql"
|
|
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: "ql"
|
|
app: {
|
|
name: string
|
|
namespace: string
|
|
filter?: {
|
|
cluster?: string
|
|
clusterNamespace?: string
|
|
components?: [...string]
|
|
kind: "Pod"
|
|
apiVersion: "v1"
|
|
}
|
|
withTree: true
|
|
}
|
|
list: [...{...}]
|
|
...
|
|
}
|
|
|
|
#CollectServices: {
|
|
#do: "collectResources"
|
|
#provider: "ql"
|
|
app: {
|
|
name: string
|
|
namespace: string
|
|
filter?: {
|
|
cluster?: string
|
|
clusterNamespace?: string
|
|
components?: [...string]
|
|
kind: "Service"
|
|
apiVersion: "v1"
|
|
}
|
|
withTree: true
|
|
}
|
|
list: [...{...}]
|
|
...
|
|
}
|
|
|
|
#SearchEvents: {
|
|
#do: "searchEvents"
|
|
#provider: "ql"
|
|
value: {...}
|
|
cluster: string
|
|
...
|
|
}
|
|
|
|
#CollectLogsInPod: {
|
|
#do: "collectLogsInPod"
|
|
#provider: "ql"
|
|
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: "ql"
|
|
app: {
|
|
name: string
|
|
namespace: string
|
|
filter?: {
|
|
cluster?: string
|
|
clusterNamespace?: string
|
|
components?: [...string]
|
|
}
|
|
withTree: true
|
|
}
|
|
list?: [...{
|
|
endpoint: {
|
|
protocol: string
|
|
appProtocol?: string
|
|
host?: string
|
|
port: int
|
|
portName?: string
|
|
path?: string
|
|
inner?: bool
|
|
}
|
|
ref: {...}
|
|
cluster?: string
|
|
component?: string
|
|
...
|
|
}]
|
|
...
|
|
}
|
|
|
|
#GetApplicationTree: {
|
|
#do: "listAppliedResources"
|
|
#provider: "ql"
|
|
app: {
|
|
name: string
|
|
namespace: string
|
|
filter?: {
|
|
cluster?: string
|
|
clusterNamespace?: string
|
|
components?: [...string]
|
|
queryNewest?: bool
|
|
}
|
|
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
|
|
...
|
|
}]
|
|
...
|
|
}
|