qiaozp
0fc65eb787
Feat: add mock server ( #2911 )
...
* add mock server
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* use mock server
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* complate terraform-alibaba addon
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* move to test dir
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* complete terraform
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add back oss
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* remove useless readme
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2021-12-14 14:52:10 +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
wyike
f5f5ff514f
Feat: cli manage addon registry and apiserver addon status return app status info ( #2910 )
...
* Fix: cli add addon registry
add more detail info for addon workflow info
Signed-off-by: wangyike <wangyike_wyk@163.com >
* fix: set app status in addon status directly
Signed-off-by: wangyike <wangyike_wyk@163.com >
* add e2e test
Signed-off-by: wangyike <wangyike_wyk@163.com >
2021-12-13 19:47:32 +08:00
qiaozp
a67b7e90d0
Feat: add path argument to addon oss source ( #2907 )
...
* add path
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* pending test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* license
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* keep compatible
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2021-12-13 19:43:15 +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
qiaozp
53006b4137
Fix: move addon api to pkg/addon ( #2905 )
...
* move addon api to pkg/addon
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* license
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2021-12-13 17:47:53 +08:00
barnettZQG
f47ae0e498
Feat: support automatically creating scaler trait for webservice component ( #2908 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2021-12-10 15:04:31 +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
qiaozp
94f32a317d
Feat: support addon definition in cue format ( #2896 )
...
* move def func to pkg
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* split def schema render
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* render CUE definition
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2021-12-09 20:31:19 +08:00
Jian.Li
3e81fdf008
remove InsecureSkipVerify ( #2903 )
...
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
2021-12-09 09:20:49 +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
barnettZQG
1563c582bc
Feat: support additional properties parameter ( #2880 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2021-12-08 17:46:45 +08:00
Jian.Li
3f2e76c75a
Feat: HTTP Provider requires adding certificate chain from secret ( #2771 )
...
* http support load tls certs
* fix: TLS MinVersion too low
2021-12-08 11:39:04 +08:00
wyike
f7ebbf4fa0
Fix: create vela namespace ( #2893 )
...
Signed-off-by: wangyike <wangyike_wyk@163.com >
2021-12-08 09:12:37 +08:00
Somefive
330c3e269c
Fix: kubeconfig tmp file security ( #2894 )
...
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
2021-12-08 09:12:07 +08:00
qiaozp
2947da2611
Fix: OSS read data race ( #2875 )
...
* Fix: read oss addon prefix bug
This bug is about list OSS bucket by prefix which will cause confusion between `terraform` and `terraform-alibaba`
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix data race
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix channel block
add test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2021-12-07 16:17:11 +08:00
Tianxin Dong
4b07f1d000
Feat: support generate definition schema from terraform remote ( #2860 )
2021-12-07 15:50:04 +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
Min Kim
589480af62
idempotent cluster join: filter out the clusters not yet accepted ( #2859 )
...
Signed-off-by: yue9944882 <291271447@qq.com >
2021-12-03 14:17:38 +08:00
Tianxin Dong
56f300846c
Fix: fix sync from status version instead of anno ( #2870 )
...
* Fix: fix workflow sort
* fix sync from status
* fix lint
* fix apply
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix ut
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2021-12-03 11:22:55 +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
Tianxin Dong
9b7286d6f5
Fix: fix workflow apserver sort and rollback status ( #2862 )
...
* Fix: fix workflow apiserver sort and rollback status
* fix ut
2021-12-02 20:04:53 +08:00
barnettZQG
27e1dd4a1b
Fix: cloud resource type applications could not be identified ( #2856 )
...
* Fix: cloud resource type applications could not be identified
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: the cloud app properties can not set empty region value
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2021-12-02 17:11:50 +08:00
Zheng Xi Zhou
7d341c4bd3
Fix: pass on properties of Terraform typed application to Configuration ( #2847 )
...
* Fix: pass on properties of Terraform typed application to Configuration
Pass on properties like `writeConnectionSecretRef`, `Region` and `providerRef`
to Configuration.
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
* revert definitions
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
2021-12-02 15:45:50 +08:00
Chwetion
59b458404e
Feat: add deleting phase for apiserver application status model ( #2854 )
...
Signed-off-by: chwetion <chwetion@foxmail.com >
Co-authored-by: chwetion <chwetion@foxmail.com >
2021-12-02 10:16:27 +08:00
qiaozp
a6ef0644ff
Feat: oss suppurt for addon ( #2848 )
...
* Add OSS source support for addon
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add unit test for pkg/addon
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix lint
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add license
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2021-12-01 19:15:48 +08:00
Tianxin Dong
374c3cd3e0
Fix: reset record status when a new one is created ( #2846 )
...
* Fix: reset record status when a new one is created
* skip the new created one
2021-12-01 10:52:07 +08:00
wyike
163415479b
Feat: list enabled addon from cluster interface and update addon ( #2832 )
...
make reviewable
lint
Feat: interface for update addon
nit import
fix comments
fix status args return
Signed-off-by: wangyike <wangyike_wyk@163.com >
2021-12-01 10:27:26 +08:00
barnettZQG
4294cc8a98
Feat: automatically populate the provider and region configuration for cloud app ( #2841 )
...
* Feat: automatically populate the provider and region configuration for cloud app.
* Fix: fix e2e test bug
* Fix: component name and type inconsistency
* Fix: fix unit test bug
* Fix: fix unit test bug
Co-authored-by: barnettZQG <yiyun.pro>
2021-12-01 10:26:33 +08:00
Zheng Xi Zhou
5630c02d7f
Fix: add more fields for Terraform types definitions in api schema ( #2836 )
...
* Fix: add more fields for Terraform types definitions in api schema
Added `writeConnectionStringSecrecto`, `region` and `deleteResoruce`
fields for Terraform types definitions in OpenAPI schema
* fix ci issue
* fix header
2021-12-01 10:03:08 +08:00
Tianxin Dong
8dad1eadb4
Feat: add alias in list record api ( #2833 )
2021-11-30 19:04:42 +08:00
Zheng Xi Zhou
c588f85438
Fix: sync status of Terraform typed components to application ( #2844 )
...
Synchronized the status of an Terraform typed components to .status.
services of the application
Signed-off-by: zzxwill <zzxwill@gmail.com >
2021-11-30 17:49:59 +08:00
朱晓兵
13c0b08081
Fix: update envBinding related workflow bug ( #2831 )
...
* Fix: fix update envBinding related workflow bug
* Fix: support cloudresource step
* Fix: add unit test
* Fix: add unit test
* Fix: add unit test
* unit test
Co-authored-by: zhuxiaobing <zhuxiaobing@lixiang.com >
2021-11-30 17:24:29 +08:00
Tianxin Dong
52ac570faa
Feat: add filter in list definitions ( #2835 )
...
* Feat: add filter in list definitions
* add workload type
2021-11-30 16:53:01 +08:00
Jian.Li
ec105cbb02
Fix: application conditions confusion. ( #2834 )
...
* fix condition confusion
* fix test cases
2021-11-30 16:43:27 +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
Somefive
f9ecc02417
Feat: rework rt ( #2797 )
2021-11-29 16:14:30 +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
wyike
6184b6e0e6
Feat: install helm addon schema ( #2815 )
...
Fix: fix bug
Fix: rebase bug
fix rebase -i master
rename func
2021-11-29 13:24:52 +08:00
barnettZQG
96a9fb7d9e
Feat: support auto creating workflow step for cloud app ( #2826 )
...
* Feat: support auto creating workflow step for cloud app
* Fix: fix unit test bug
* Fix: fix component cant not find bug
Co-authored-by: barnettZQG <yiyun.pro>
2021-11-29 10:20:15 +08:00
Zheng Xi Zhou
92335eca17
Fix: support exposing cloud resource identifier and console url ( #2825 )
...
* Fix: support exposing cloud resource identifier and console url
To help users quickly navigate to the instance in the web console, exposing
necessary information in ComponentDefinition and convert them to Configuration
* fix ci
* Check whether wl.FullTemplate.ComponentDefinition is nil before getting annotations
2021-11-28 17:21:12 +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
qiaozp
b05deeca55
Feat: add addon invisible field ( #2820 )
...
* Feat: add addon invisible field
* reviewable
2021-11-27 13:06:45 +08:00
Tianxin Dong
334ef864da
Feat: add alias in workflow step status ( #2821 )
...
* Feat: add alias in workflow step status
* fix lint
* add revision
2021-11-26 20:35:04 +08:00
Somefive
f5fc822a3e
Fix legacy resourcetracker not garbage collect while previousRT is empty or equals currentRT ( #2817 )
2021-11-26 17:48:17 +08:00
Somefive
dd84700657
Fix: health check appRev label bug ( #2816 )
...
* Fix: healthscope failed since appRevision is not set && rollout controller amend appRevision to workload since compRev does not have this one
* Fix: test
2021-11-26 17:47:43 +08:00
Somefive
782025507c
Fix: health check do not check resource in correct namespace while ns is override by envbinding ( #2818 )
2021-11-26 16:04:44 +08:00
Tianxin Dong
bab241e969
Feat: add more logs in workflow sync ( #2806 )
2021-11-26 15:34:25 +08:00
Zheng Xi Zhou
41f384e36b
Fix: addon name should not add prefix resources ( #2808 )
...
* Fix: addon name should not add prefix `resources`
- Adding prefix `resources will hit issues as:
'unable to parse requirement: invalid label value:
"resources-prometheus-server-register-grafana-datasource-5576f7f6b4":
at key: "controller.oam.dev/component": must be no more than 63 characters'
- This won't avoid the name confliction with other components
* address comments
2021-11-25 21:01:56 +08:00
qiaozp
b279df0451
Fix: add lock to avoid addon concurrency read error ( #2803 )
...
* make read func table driven
* add mutex
* fix
2021-11-25 11:50:29 +08:00