mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
[Backport release-1.5] Feat: refactor CLI commands related to resources (#4514)
* Feat: refactor CLI commands related to resources Signed-off-by: barnettZQG <barnett.zqg@gmail.com> (cherry picked from commitdacefcac80) * Fix: remove the old test case. Signed-off-by: barnettZQG <barnett.zqg@gmail.com> (cherry picked from commitef9fbaa22f) * Fix: e2e test Signed-off-by: barnettZQG <barnett.zqg@gmail.com> (cherry picked from commit6f412f5b45) * Fix: optimize test cases Signed-off-by: barnettZQG <barnett.zqg@gmail.com> (cherry picked from commit501d7cfad7) * Feat: rename 'vela pods' to 'vela status --pod' Signed-off-by: barnettZQG <barnett.zqg@gmail.com> (cherry picked from commit2d6ad41afc) * Feat: optimize the e2e test case Signed-off-by: barnettZQG <barnett.zqg@gmail.com> (cherry picked from commitafa786a096) * Fix: sort the objects Signed-off-by: barnettZQG <barnett.zqg@gmail.com> (cherry picked from commit619e9b1b5f) * Fix: optimize the e2e test case Signed-off-by: barnettZQG <barnett.zqg@gmail.com> (cherry picked from commitd6688c40b5) * Fix: list the pod by the labels Signed-off-by: barnettZQG <barnett.zqg@gmail.com> (cherry picked from commitaec1791ac1) * Fix: order the tree resource Signed-off-by: barnettZQG <barnett.zqg@gmail.com> (cherry picked from commitf51abadec3) * Fix: set multicluster config Signed-off-by: barnettZQG <barnett.zqg@gmail.com> (cherry picked from commit767b0020e5) Co-authored-by: barnettZQG <barnett.zqg@gmail.com>
This commit is contained in:
co-authored by
barnettZQG
parent
1b21db979f
commit
3a9e5ccd5d
@@ -58,10 +58,40 @@
|
||||
}
|
||||
|
||||
#CollectPods: {
|
||||
#do: "collectPods"
|
||||
#do: "collectResources"
|
||||
#provider: "query"
|
||||
value: {...}
|
||||
cluster: string
|
||||
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: [...{...}]
|
||||
...
|
||||
}
|
||||
|
||||
@@ -111,6 +141,7 @@
|
||||
clusterNamespace?: string
|
||||
components?: [...string]
|
||||
}
|
||||
withTree: true
|
||||
}
|
||||
list?: [...{
|
||||
endpoint: {
|
||||
@@ -130,7 +161,7 @@
|
||||
}
|
||||
|
||||
#GetApplicationTree: {
|
||||
#do: "getApplicationTree"
|
||||
#do: "listAppliedResources"
|
||||
#provider: "query"
|
||||
app: {
|
||||
name: string
|
||||
@@ -140,6 +171,7 @@
|
||||
clusterNamespace?: string
|
||||
components?: [...string]
|
||||
}
|
||||
withTree: true
|
||||
}
|
||||
list?: [...{
|
||||
name: string
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
#CollectPods: query.#CollectPods
|
||||
|
||||
#CollectServices: query.#CollectServices
|
||||
|
||||
#SearchEvents: query.#SearchEvents
|
||||
|
||||
#CollectLogsInPod: query.#CollectLogsInPod
|
||||
|
||||
Reference in New Issue
Block a user