wyike
f39a3fb792
Feat: system information collection logic in apiserver ( #3082 )
...
* Feat: userInfoCollection
Signed-off-by: wangyike <wangyike_wyk@163.com >
* Signed-off-by: wangyike <wangyike_wyk@163.com >
change enable/disable to update interface
Signed-off-by: wangyike <wangyike_wyk@163.com >
2022-01-14 10:16:31 +08:00
wyike
5b1c47c918
cue template health check skipStandard workload and fix test diverge ( #3087 )
...
Signed-off-by: wangyike <wangyike_wyk@163.com >
add annotation
Signed-off-by: wangyike <wangyike_wyk@163.com >
set skipStandardworkload in wl
Signed-off-by: wangyike <wangyike_wyk@163.com >
add annotation
Signed-off-by: wangyike <wangyike_wyk@163.com >
2022-01-13 19:08:43 +08:00
Jianbo Sun
7f7a9dcac0
Feat: vela up support read from stdin && refine CLI output && fix vela addon command ( #3080 )
...
* Feat: vela up support read from stdin
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Fix: addon name missed in output and fix test
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Chore: refine CLI output
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Fix: add retry-on conflict on CLI
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-01-12 17:43:08 +08:00
wyike
53081d043b
Chore: deprecate and delete approllout related code ( #3040 )
...
* Fex: delete useles approllout related code
Signed-off-by: wangyike <wangyike_wyk@163.com >
fix failed test
Signed-off-by: wangyike <wangyike_wyk@163.com >
Fix: failed e2e test
Signed-off-by: wangyike <wangyike_wyk@163.com >
fix-test
Signed-off-by: wangyike <wangyike_wyk@163.com >
fix test
Signed-off-by: wangyike <wangyike_wyk@163.com >
fix e2e-test
Signed-off-by: wangyike <wangyike_wyk@163.com >
fix e2e rollout test
Signed-off-by: wangyike <wangyike_wyk@163.com >
* delete useless test code
Signed-off-by: wangyike <wangyike_wyk@163.com >
* fix failed unit-test
Signed-off-by: wangyike <wangyike_wyk@163.com >
2022-01-06 14:33:11 +08:00
qiaozp
5f31b9aad0
Feat: add test for registry name in addon response ( #2858 )
...
* add test for registry name when list addon
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* revert
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2022-01-06 11:48:34 +08:00
Somefive
746eb0dbe4
Feat: support logs for velaql ( #3011 )
...
* Feat: support logs for velaql
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Feat: extend parameter
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
2021-12-28 20:49:56 +08:00
Somefive
0d6173c1ca
Fix: pending deprecated test ( #3009 )
...
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
2021-12-28 13:12:09 +08:00
Jianbo Sun
5648c56cf5
Refactor: align velaux env and CLI env, they both use K8s namespace as ( #2975 )
...
* Refactor: use createOrUpdateNamespace as a common util function
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Feat: add ENV webservice handelr
* Fix: fix Env usecase logic
* Feat: Add Delete Env API
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Fix: filter empty addon data
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Feat: split makefiels and make it clear
* Feat: add k8s utils test
* Feat: Add env update interface
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Feat: change env implementation
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: minor fix
* Revert "Fix: minor fix"
This reverts commit 9cafefa65a .
* Fix: use appusecase as parameter
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Refactor: align CLI vela env with new env design
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Fix: minor fix
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Feat: add page index and alias of env
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Fix: fix tests and licence header
* Fix: fix makefile and add default target
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Fix: update build swagger.json
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Fix: change update env api
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: list env with alias
* Feat: add log to env delete
* Fix: can not get app status
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: support update workflow and refactor code
* Fix: lint
* Fix: remove swagger check
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Fix: fix cli vela delete
* Fix: update test
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Fix: update test
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Fix: app deploy unit test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: SortOrderDescending is not effective
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: e2e test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: support default project/target/env
* Fix: make test and add swagger
* Fix: use separated datasource for unit test
* Fix: app rollback bug
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: fix e2e test
* Fix: kubeapi driver sort bug
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: e2e test
* Fix: api e2e test
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: e2e test fix
* Fix: try fix e2e test
* Fix: api e2e test
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
Co-authored-by: barnettZQG <barnett.zqg@gmail.com >
2021-12-25 10:36:54 +08:00
wyike
e519c6142a
Chore: delete useless test ( #2984 )
...
* delete useless test
Signed-off-by: wangyike <wangyike_wyk@163.com >
* delete healthscope related test
Signed-off-by: wangyike <wangyike_wyk@163.com >
* small fix
Signed-off-by: wangyike <wangyike_wyk@163.com >
* remove useless report
Signed-off-by: wangyike <wangyike_wyk@163.com >
2021-12-23 18:13:00 +08:00
Somefive
36ad77493c
Fix: resource policy test flaky ( #2969 )
...
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
2021-12-22 09:27:21 +08:00
qiaozp
9317bb1cab
Refactor: addon cache mechanism and code architecture ( #2956 )
...
* Refactor: fix addon cache and code
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* basic trim
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* Fix list OSS bucket addon's meta
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* rename listAddonMeta func
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix enable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* rename and trim cache func call
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* remove same source code, use Registry to implement Source interface. Keep the compatibility of DeployTo fields.
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* complete github reader
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix read from github, fix test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* header
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* rename function, restore test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* try CI
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* sort out functions name. add detail test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* filter directory without metadata.yaml in oss
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add GitHub reader unit test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* clean up
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* header
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add cache arg
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* change field name
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* build swagger
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* some json tag, revert cache logic
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
Co-authored-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2021-12-21 09:31:37 +08:00
Zheng Xi Zhou
d11d171be8
Fix: enable Observability in runtime clusters ( #2886 )
...
* Fix: enable Observability in runtime clusters
Enabled add-on observability in runtime clusters. In each cluster, a sub-domain
will be allocated to the cluste
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
* Fix:add workflow step definition and ut
Added a new workflow step definition `apply-application-in-parallel`,
and added more unit tests
2021-12-17 23:04:54 +08:00
yangsoon
3b1f097807
Fix: change catlog helm repo path to https://charts.kubevela.net/example ( #2942 )
...
Signed-off-by: yangsoon <yangsoonlx@gmail.com >
2021-12-16 15:17:00 +08:00
Tianxin Dong
655c2615e1
Feat: add workflow reconciling backoff time and failed limit times ( #2881 )
...
* Feat: add workflow failed after retries
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add workflow reconcile backoff time
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* make reviewable
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* resolve some comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add tests
* fix rebase
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix status
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix requeue time interval
* resolve comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* change time to pointer
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix pointer test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* change time to cm
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* resolve comments and add e2e test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2021-12-15 11:33:33 +08:00
Somefive
4dc213469a
Feat: add compatibility code for new rt ( #2920 )
...
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
2021-12-14 21:27:47 +08:00
yangsoon
6d536a84d7
Feat: refactor velaql provider with new ResourceTracker architecture ( #2915 )
...
* Feat: refactor velaql with new ResourceTracker architecture
Signed-off-by: yangsoon <yangsoonlx@gmail.com >
* Feat: concurrently request the pod created by helm
Signed-off-by: yangsoon <yangsoonlx@gmail.com >
2021-12-14 13:09:40 +08:00
Somefive
a89bb69a62
Fix: add design docs for ResourceTracker ( #2909 )
...
* Fix: enhance rt logic and add docs
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Fix: test conflict
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
2021-12-13 19:41:42 +08:00
Somefive
b622cbdb7f
Feat: ResourceTracker new architecture ( #2849 )
...
* Feat: new rt
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Fix: add publish version
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
2021-12-10 15:00:03 +08:00
barnettZQG
ad4b44696a
Feat: add the project api ( #2899 )
...
* Feat: add the project api
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: fix e2e test bug
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2021-12-08 19:08:35 +08:00
wyike
99757814ab
Feat: algin addon cli and apiserver ( #2867 )
...
Feat: cli aligin with apiserver
Fix comments
Signed-off-by: wangyike <wangyike_wyk@163.com >
2021-12-07 15:11:52 +08:00
qiaozp
95c2b8ce04
Fix: query addon status api 500 because of secret ( #2866 )
...
* Fix: query addon status api 500 because of secret
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* Fix: enable addon failed because the file name of the cue template is used as the component name
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* Fix: fix several oss read problem
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix lint
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* use oss test endpoint
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix ut
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2021-12-03 10:59:46 +08:00
yangsoon
13b07674f1
Fix: fix flaky e2e-test of apiserver ( #2840 )
...
Co-authored-by: yangsoon <songyang.song@alibaba-inc.com >
2021-11-30 10:37:52 +08:00
Tianxin Dong
d1f56743cc
Feat: add core definitions ( #2664 )
...
* Feat: add components and storage api-oriented defs
* add some examples
* change the dir
* resolve comments
* make reviewable
* fix example
* add labels and annotations in component
* add config map ref key in env
* add more traits
* add wfstep defs and rename
* fmt the cue
* re-struct all the definitions
* revert deprecated defs and add webhook def
* delete useless network trait
* fix generated tab
* fix indent
* fix webservice
* add labels
* comment webservice and worker's health check
* fix retainkeys
* fix webservice and worker's health check
* add suspend def which will be replaced by internal def
* fix cli and add labels
* fix script
* add ignore
* fix healthscope example
2021-11-29 15:02:16 +08:00
yangsoon
23bceb9f9c
Fix: velaql miss query the resources created by the old application version ( #2824 )
...
Co-authored-by: yangsoon <songyang.song@alibaba-inc.com >
2021-11-27 13:57:48 +08:00
Zheng Xi Zhou
7bdf4c176b
Fix: install Terraform and apply the support for a provider in one jump ( #2778 )
...
* Fix: install Terraform and apply the support for a provider in one jump
- Fix issue: addon name should not include forward-slash "/" cloud-resource fix addon name should not include forward-slash "/" #2588
- Install terraform and the provider in one jump. Instead of installing terraform
and terraform-xxx in two steps
2021-11-26 23:01:11 +08:00
wyike
66e8398ab8
Fix: add back missed commit and add tests ( #2781 )
...
* Fix: missed commit
Test: add test
* Fix: add e2e test addon rely on core feature
fix test
Fix: e2e-test
* Fix: create vela-system namespace when cluster join
fix
* Fix: fix comments add args in command
2021-11-24 20:59:08 +08:00
barnettZQG
99d473df2a
Feat: translate the object type to Group ( #2786 )
...
* Feat: translate the object type to Group
* Fix: fix unit test bug
* Fix: fix workflow do not delete after delete env bug
Co-authored-by: barnettZQG <yiyun.pro>
2021-11-24 20:17:40 +08:00
Zheng Xi Zhou
14770dff0d
Fix: arguments map[string]string doesn't support observability's args ( #2790 )
...
* Fix: arguments map[string]string doesn't support observability's args
As there are bool typed arguments, the current arguments type doesn't
support.
2021-11-24 19:52:59 +08:00
Zheng Xi Zhou
e5a86ef537
Fix: the first addon should not be example ( #2793 )
...
As addon example has been removed, the first addon on should not
be `example`
2021-11-24 13:44:55 +08:00
barnettZQG
8c276e226b
Fix: fix update component and list workflow bug ( #2782 )
...
* Fix: fix update component and list workflow bug (#2763 )
* Fix: fix update component and list workflow bug
* Fix: change e2e test case
* Fix: change e2e case
Co-authored-by: barnettZQG <yiyun.pro>
* Fix: fix sync controller revision (#2772 )
Co-authored-by: Tianxin Dong <dongtianxin.tx@alibaba-inc.com >
Co-authored-by: barnettZQG <yiyun.pro>
2021-11-23 19:30:54 +08:00
Hongchao Deng
5c46aa2f7f
fix header
2021-11-22 19:07:13 +08:00
Hongchao Deng
cf4aaf51c8
fix imports
2021-11-22 18:47:47 +08:00
Hongchao Deng
8699346401
Merge branch 'apiserver' into merge
2021-11-22 17:27:40 +08:00
Hongchao Deng
e5aba94cd1
Merge branch 'apiserver' into merge
2021-11-22 17:25:50 +08:00
Zheng Xi Zhou
5b7b7138e2
Fix: enable addon without arguments ( #2766 )
...
If an addon like `fluxcd` doesn't need arguments to be enabled, we
should not parse the arugments
2021-11-22 16:30:11 +08:00
qiaozp
1ea26865aa
Fix: lint apiserver code, fix panic ( #2755 )
...
* lint code
* fix error judge
try
* fix multicluster enable panic
* add err log
* fix can not get parameter
* debug
* try ci
* debug
* debug
* debug
* debugo
Co-authored-by: barnettZQG <576501057@qq.com >
2021-11-21 18:09:19 +08:00
yangsoon
99ffe80eb4
Feat: component-pod-view support filter resource by cluster name and cluster namespace ( #2754 )
2021-11-21 14:56:01 +08:00
barnettZQG
adcb7bd65e
Feat: support update component and query app statistics info ( #2746 )
...
* Feat: change swagger config
* Feat: support update component and query app statistics info
* Fix: fix workflow list bug
* Fix: fix test bug
* Fix: fix e2e test bug
* Feat: change workflow api
* Fix: fix app deploy e2e test bug
* Fix: change e2e test
* Fix: fix workflow bug
* Fix: fix deploy bug
* Fix: fix selector bug
* Feat: support recycle env
* Fix: debug e2e
* Fix: fix e2e case bug
Co-authored-by: barnettZQG <yiyun.pro>
2021-11-20 19:50:36 +08:00
Somefive
1a2c964dac
Fix: enhance cluster api ( #2742 )
2021-11-19 15:39:54 +08:00
朱晓兵
ffd25a4cbf
Feat: refactor envbinding for adapt policy placement ( #2731 )
...
* Feat: refactor envbinding for adapt policy placement
* Fix: refactor envbinding logic
* Fix: fix some bug
* Fix: fix unit test
* Fix: fix unit test
* Fix: fix unit test
* Fix: fix unit test
* Fix: fix unit test ...
* Fix: fix unit test
Co-authored-by: zhuxiaobing <zhuxiaobing@lixiang.com >
2021-11-19 10:37:40 +08:00
yangsoon
530f158795
Feat: velaql support query the resources created by helmrelease ( #2726 )
...
Co-authored-by: yangsoon <songyang.song@alibaba-inc.com >
2021-11-18 11:53:38 +08:00
barnettZQG
ba1f8e4793
Feat: change the model to support multiple environments ( #2721 )
...
* Feat: change swagger config
* Feat: change the model to support multiple environments.
* Feat: support query targets by namespace
* Fix: fix definition unit test case
Co-authored-by: barnettZQG <yiyun.pro>
2021-11-16 14:45:49 +08:00
wyike
43aa05673e
Feat: manage trait ( #2702 )
...
* Feat: manage trait
fix test
* fix test
2021-11-15 21:04:03 +08:00
qiaozp
27490c4bce
Refactor: refactor addon for later reusing code in CLI ( #2708 )
...
* refactor addon for later reuse code in CLI
* fix import
2021-11-15 12:16:32 +08:00
barnettZQG
e1c64540f4
Feat: change api spec ( #2695 )
...
* Feat: change api spec
* Feat: change DeployEvent to ApplicationRevision
* Fix: fix test bug
* Fix: fix unit test bug
Co-authored-by: barnettZQG <yiyun.pro>
2021-11-12 17:19:34 +08:00
yangsoon
722ed480e9
Feat: add more views ( #2689 )
...
Co-authored-by: yangsoon <songyang.song@alibaba-inc.com >
2021-11-12 14:34:26 +08:00
barnettZQG
3e68f8a83b
Feat: change model name ( #2688 )
...
* Feat: change mode name
* Fix: fix e2e test bug
Co-authored-by: barnettZQG <yiyun.pro>
2021-11-12 11:58:13 +08:00
wyike
b0577a979a
Fix: fix delete a component from application not delete workload ( #2680 )
...
lint
Fix: error test
Fix: fix e2e rollout
Fix comment
2021-11-12 11:45:45 +08:00
Somefive
cee3630ead
Feat: upgrade cluster gateway to support remote debug ( #2673 )
2021-11-12 11:44:18 +08:00
Zheng Xi Zhou
53d380ff41
Fix: application status.services doesn't include Terraform typed components ( #2643 )
...
* Fix: application status.services doesn't include Terraform typed components
Function aggregateHealthStatus() which is used to retrieve components status, was
abandoned. All unit-tests of it was abandoned too. Fixed it and restore all the unit
tests.
2021-11-11 14:07:46 +08:00