[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 commit dacefcac80)

* Fix: remove the old test case.

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit ef9fbaa22f)

* Fix: e2e test

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit 6f412f5b45)

* Fix: optimize test cases

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit 501d7cfad7)

* Feat: rename 'vela pods' to 'vela status --pod'

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit 2d6ad41afc)

* Feat: optimize the e2e test case

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit afa786a096)

* Fix: sort the objects

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit 619e9b1b5f)

* Fix: optimize the e2e test case

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit d6688c40b5)

* Fix: list the pod by the labels

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit aec1791ac1)

* Fix: order the tree resource

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit f51abadec3)

* Fix: set multicluster config

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit 767b0020e5)

Co-authored-by: barnettZQG <barnett.zqg@gmail.com>
This commit is contained in:
github-actions[bot]
2022-08-01 19:46:20 +08:00
committed by GitHub
co-authored by barnettZQG
parent 1b21db979f
commit 3a9e5ccd5d
36 changed files with 1919 additions and 1059 deletions
+36 -4
View File
@@ -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
+2
View File
@@ -10,6 +10,8 @@
#CollectPods: query.#CollectPods
#CollectServices: query.#CollectServices
#SearchEvents: query.#SearchEvents
#CollectLogsInPod: query.#CollectLogsInPod