Files
kubevela/pkg/stdlib/pkgs/query.cue
barnettZQG 1fc65f56bf Feat: support HTTPRoute to generate endpoint (#4378)
* Feat: support HTTPRoute to generate endpoint

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>

* Feat: print the inner in CLI

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>

* Fix: change the comment

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
2022-07-14 18:15:20 +08:00

162 lines
2.8 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: "collectPods"
#provider: "query"
value: {...}
cluster: string
...
}
#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]
}
}
list?: [...{
endpoint: {
protocol: string
appProtocol?: string
host?: string
port: int
path?: string
inner?: bool
}
ref: {...}
cluster?: string
component?: string
...
}]
...
}
#GetApplicationTree: {
#do: "getApplicationTree"
#provider: "query"
app: {
name: string
namespace: string
filter?: {
cluster?: string
clusterNamespace?: string
components?: [...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
...
}]
...
}