github-actions[bot]
eb5c730e36
Fix: not steady unit test ( #3295 )
...
The UT `TestGetOpenAPISchemaFromTerraformComponentDefinition` won't
succeed 100%. The required variables in the generated isn't in the expected
order all the time.
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
(cherry picked from commit 0632044bca )
Co-authored-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-02-18 15:18:34 +08:00
Jian.Li
4d50017622
Feat: application support controller requirement ( #3192 ) ( #3290 )
...
* application controller version control
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
* modify command arg name
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
2022-02-18 13:05:33 +08:00
github-actions[bot]
859ca7567f
Fix: fixed required items for a Terraform ComponentDefinition ( #3258 )
...
If a Terraform variable is required, the item in OpenAPI schema
is required.
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
(cherry picked from commit 87a6e44e97 )
Co-authored-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-02-15 19:54:00 +08:00
github-actions[bot]
341e07b636
Fix: fix panic when user disable create apprevision ( #3247 )
...
Signed-off-by: yangsoon <songyang.song@alibaba-inc.com >
(cherry picked from commit fb0983041d )
Co-authored-by: yangsoon <songyang.song@alibaba-inc.com >
2022-02-14 17:55:50 +08:00
github-actions[bot]
fbef61d076
[Backport release-1.2] Fix: disable cochange for apprev when def changes ( #3221 )
...
* Fix: disable cochange for apprev when def changes
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
(cherry picked from commit f67d1c7e08 )
* Fix: add test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
(cherry picked from commit e3f95763ae )
Co-authored-by: Somefive <yd219913@alibaba-inc.com >
2022-02-10 11:42:04 +08:00
github-actions[bot]
b9f9f7f3f9
Fix: support more Terraform variable types ( #3207 )
...
Support Any, set and some complicated variable types
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
(cherry picked from commit c37ba34fc7 )
Co-authored-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-02-08 18:50:58 +08:00
github-actions[bot]
06eb8f055d
[Backport release-1.2] Feat: dispatch manifests in concurrent ( #3201 )
...
* Feat: dispatch manifests in concurrent
Signed-off-by: yangsoon <songyang.song@alibaba-inc.com >
(cherry picked from commit 774f108d19 )
* Fix: merge workflow pkg convert to pkg util
Signed-off-by: yangsoon <songyang.song@alibaba-inc.com >
(cherry picked from commit 0a09a2fa8d )
Co-authored-by: yangsoon <songyang.song@alibaba-inc.com >
2022-02-08 16:26:54 +08:00
github-actions[bot]
9dec98fbba
Fix: add unit test for getting Terraform Configuration from remote git ( #3194 )
...
Add another unit test when the configuration of Terraform locates
in a subpath of a git remote repository
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
(cherry picked from commit bef07e9a08 )
Co-authored-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-02-08 10:21:41 +08:00
github-actions[bot]
7902a19aae
[Backport release-1.2] Fix: retrieve Terraform variables from variables.tf ( #3153 )
...
* Fix: retrieve Terraform variables from variables.tf
If Terraform modules/resources are stored in remote git repos, get
variables from file `varialbes.tf`, or from `main.tf`.
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
(cherry picked from commit b257825af6 )
* set the required field per the variables' property
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
(cherry picked from commit 4b151582c5 )
* fix ut issue
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
(cherry picked from commit b52145c8a4 )
* fix ut issue
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
(cherry picked from commit 410acc8ae2 )
Co-authored-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-01-24 13:56:59 +08:00
github-actions[bot]
ee8773e1cf
[Backport release-1.2] Fix: handle workflow cache reconcile ( #3148 )
...
* Fix: handle workflow cache reconcile
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
(cherry picked from commit 12df87ac11 )
* fix return and move backoff to memory
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
(cherry picked from commit ee876f53c3 )
* handle failed to patch case
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
(cherry picked from commit eac4a1b370 )
* add store in err case
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
(cherry picked from commit 32825c5c41 )
* make reviewable
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
(cherry picked from commit 02b9c60922 )
* fix ut
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
(cherry picked from commit bff156cbe6 )
* do cleanup in ut
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
(cherry picked from commit 463bd96e78 )
Co-authored-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-01-24 10:37:48 +08:00
github-actions[bot]
8cf2f20846
[Backport release-1.2] Fix: workflow skip executing all steps occasionally ( #3147 )
...
* fix asi
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
(cherry picked from commit 2c26caedd3 )
* fix lint
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
(cherry picked from commit b63e892eb3 )
* add trace tag
(cherry picked from commit 1a6d79642e )
* add args for this feature
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
(cherry picked from commit b9181b9fc0 )
* enable-asi-compatibility
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
(cherry picked from commit 5d013db0bd )
Co-authored-by: Jian.Li <lj176172@alibaba-inc.com >
2022-01-23 10:13:59 +08:00
github-actions[bot]
7e447c6532
fix revision will change when add new trait with skiprevisionaffect to application ( #3117 )
...
Signed-off-by: chwetion <chwetion@foxmail.com >
(cherry picked from commit 86f6fef216 )
Co-authored-by: chwetion <chwetion@foxmail.com >
2022-01-18 13:41:48 +08:00
Somefive
12f392cd92
Fix: rollout workload namespace not aligned with rollout ( #3107 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-01-17 20:06:27 +08:00
yangsoon
6cee468743
Feat: add more performance optimization and prometheus metrics for controller ( #3086 )
...
* Feat: add more prometheus metrics
Signed-off-by: yangsoon <yangsoonlx@gmail.com >
* Feat: add detail gc rt duration metrics
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Feat: add monitor to client
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Feat: add all cache object
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Fix: watch job
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Feat: add deleg client
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Feat: add optimize for rt list and disable controllerrevision
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Feat: add apprev disable optimize
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Fix: optimize log
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Feat: add time recorder for app ctrl
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Feat: add in-memory workflow context
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Feat: add reconcile-reduction & random-pick-gc & optimize rt record
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
* Feat: add optimize for healthcheck & resourcetracker trigger
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Chore: refactor
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: record the resource-tracker number by informer event-handler
Signed-off-by: yangsoon <songyang.song@alibaba-inc.com >
* Feat: add promethus collect annotation in template
Signed-off-by: yangsoon <songyang.song@alibaba-inc.com >
* Fix: command line comment bug
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Chore: rename args and remove legacy controller metrics
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: make code reviewable
Signed-off-by: yangsoon <songyang.song@alibaba-inc.com >
* Chore: optimize flag descriptions
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Chore: break optimize package
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: gc policy test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
Co-authored-by: Yin Da <yd219913@alibaba-inc.com >
Co-authored-by: yangsoon <songyang.song@alibaba-inc.com >
2022-01-14 15:18:02 +08:00
Somefive
8b5d7ed395
Feat: reset re-sync time ( #3008 )
...
* Feat: set resync
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: rename re-sync period
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Chore: refactor return value
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-01-13 20:12:54 +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
Minglong Song
b30ca0c8a2
Fix: Do not fiter event triggered by resync for application controller ( #3064 )
...
Signed-off-by: songminglong <1247768069@qq.com >
2022-01-10 14:48:58 +08:00
Zheng Xi Zhou
1a50dd76b5
Fix: generate docs for Terraform ComponentDefinition ( #3051 )
...
* Fix: generate docs for Terraform ComponentDefinition
Generated kubevela.io docs for Terraform typed ComponentDefinition
with `vela def gen-doc xxx` cli.
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
* Refactor code
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
* add ut
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
* add ut
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
* refine cloud resource title
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-01-10 14:08:48 +08:00
wyike
770894412a
Chore: deprecate appDeployment related logic ( #3050 )
...
* deperecated appDeployment
Signed-off-by: wangyike <wangyike_wyk@163.com >
* delete more code
Signed-off-by: wangyike <wangyike_wyk@163.com >
2022-01-06 16:24:09 +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
Zheng Xi Zhou
8033279751
Fix: Generate doc for Terraform typed ComponentDefinition ( #3041 )
...
* Fix: Generate doc for Terraform typed ComponentDefinition
When the configuration of a Terraform Typed ComponentDefinition is in
remote Git, generate the properties for it. And generated outputs for
all Terraform ComponentDefinition
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-01-05 19:45:30 +08:00
Somefive
acac0554f3
Fix: filter managedfields update events ( #3043 )
...
Signed-off-by: Yin Da <yd219913@alibaba-inc.com >
2022-01-05 13:30:58 +08:00
Jian.Li
133a89be3f
Fix: deprecate CRD discovery for CUE import in Definition to prevent memory leak and OOM crash ( #2925 )
...
* Pause test case
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
* fix lint
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
* diable discover the open api of the CRD
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
* fix definition test cases
Signed-off-by: Jian.Li <lj176172@alibaba-inc.com >
2021-12-16 17:53:15 +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
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
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
Tianxin Dong
4b07f1d000
Feat: support generate definition schema from terraform remote ( #2860 )
2021-12-07 15:50:04 +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
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
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
Somefive
f9ecc02417
Feat: rework rt ( #2797 )
2021-11-29 16:14:30 +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
Somefive
d1f70def0e
Fix: healthscope support envbinding (namespace) ( #2783 )
...
* Fix: healthscope support envbinding (namespace)
* Fix: ensure healthscope not patch status when application workflow is still running
2021-11-24 21:26:06 +08:00
yangsoon
3d2fcacb5a
Feat: built in gc policy to application ( #2575 )
2021-11-24 15:38:13 +08:00
yangsoon
6dff9ab679
Fix: fix compatibility test
2021-11-22 23:21:17 +08:00
Hongchao Deng
e5aba94cd1
Merge branch 'apiserver' into merge
2021-11-22 17:25:50 +08:00
wyike
4ad27e9bcd
Fix: ( #2761 )
...
1. load component in arrary, so apply them in order addon's needNamespace will be apply firstly
2. apply application in controle plane will be first workflowStep
3. bigger application reconcile timeout context get avoid of time out
2021-11-21 21:03:41 +08:00
Somefive
34aa74ff48
Feat: envbinding support cloud resource deploy and share ( #2734 )
...
* Feat: envbinding support cloud resource deploy and bind
* Fix: change bind-cloud-resource to share-cloud-resource
2021-11-20 13:07:27 +08:00
Tianxin Dong
ff405cd62a
Feat: add workflow record actions ( #2733 )
...
* Feat: add application revision actions
* refactor workflow record and application revision
* generate doc
* fix rebase
* fix rebase
* delete comment
* fix comment
* delete suspend status
* use apply instead of update
* find latest comlete revision if the revision is not specified
* delete name
* fix primary key
2021-11-20 13:05:52 +08:00
Jian.Li
d954bbac00
Fix: applied-resources overflow ( #2740 )
...
* fix applied-resources overflow
* add test cases
2021-11-18 20:04:21 +08:00
qiaozp
1c7e0c054d
Fix: add detail cache, fix uiSchema ( #2716 )
...
* add detail cache, fix uischema
* remove
2021-11-15 17:17:07 +08:00
Jian.Li
0803b45faf
Feat: output log with structured tag & add step duration metrics ( #2683 )
...
* debug task
* metrics
* trace context
* add step_duration metrics
* add readme docs
2021-11-12 11:48:41 +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
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