Tianxin Dong
c3ca308489
Chore: update cue version to 0.4.3 ( #4425 )
...
* Chore: update cue version to 0.4.3
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* resolve some comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* add more tests
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* rebase and add more tests
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* resolve comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
2022-08-08 17:57:48 +08:00
Zheng Xi Zhou
334446c264
Feat: support force delete Terraform typed application ( #3929 )
...
* Feat: support force delete Terraform typed application
If a Terraform typed application hangs on deletion, it could be forced to
delete by command line `vela delete xxx --force`
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix copyright
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* Upgrade terraform controller api version
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* add one more tests
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix two unit-tests
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
2022-05-20 18:17:10 +08:00
Zheng Xi Zhou
7bfcd6acc5
Fix: don't override user definied `region` ( #3503 )
...
* Fix: don't override user definied `region`
Fix #https://github.com/oam-dev/kubevela/issues/3384
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix check-diff
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix CI
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix CI
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix UT
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* revert some changes
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
2022-05-09 15:10:31 +08:00
Somefive
741544c00c
Feat: rework apprev ( #3498 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
2022-03-24 14:40:19 +08:00
朱晓兵
9671e3b232
Fix(context): add support for context.appLables and context.appAnnotations ( #3463 ) ( #3468 )
...
* Fix(context): add support for context.appLables and context.appAnnotations (#3463 )
Signed-off-by: zxbyoyoyo <596908030@qq.com>
Signed-off-by: 朱晓兵 <596908030@qq.com>
* Fix: unit test
Signed-off-by: 朱晓兵 <596908030@qq.com>
* Fix: recover deleted field
Signed-off-by: 朱晓兵 <596908030@qq.com>
2022-03-21 12:02:30 +08:00
Somefive
de81c24f42
Feat: support standalone style multi-cluster ( #3223 )
...
* Feat: ref component
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: support topology and override
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: add support for external policy and workflow
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: add admission control
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: disable cross namespace ref object
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Chore: refactor
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: support labelSelector in ref-objects
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: add pre approve for deploy step
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Chore: refactor
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: test
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: support comp/trait type in override policy even not used by prototype
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: support regex match for patch component name
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: labelSelector not work for cluster
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: ref workflow contains external policy
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: revision test
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: parallel apply components
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: add test for oam provider
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: service ref-comp & indirect trait ns
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: align namespace setting for chart
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: add strict unmarshal and reformat
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: merge with cluster rework
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: patch trait-def
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: apply components + load dynamic component
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: add test for loadPoliciesInOrder
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: add test for open merge
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: reformat & add test for step generator
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: add test for parse override policy related defs
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: add test for multicluster provider (expandTopology and overrideConfiguration)
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: add admission test
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: revert trait status pass in component status
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: add test for dependency in workflowstep & standalone multicluster test
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: add check for ref and steps in WorkflowStep & enhance ref-objects scheme check
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
2022-03-07 10:21:00 +08:00
Tianxin Dong
d6cf2cdd2f
Fix: add process context in workflow ( #3318 )
...
* Fix: add process context in workflow
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* add context data in process context
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* delete usesless func
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* fix ut
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* use multi cluster ctx in process ctx
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* remove debug log
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
2022-02-28 10:30:55 +08:00
Jianbo Sun
7395994bdd
Feat: add componentName in context for traitDefinition ( #3200 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
2022-02-08 16:26:16 +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
Zheng Xi Zhou
96485ea0db
Fix: when a provider is set in ComponentDefinition, it should look for the provider ( #3047 )
...
* Fix: when a provider is set in ComponentDefinition, it should look for the provider
Fixed the issue "The error message is not correct when AWS provider is not available"
Fix #3046
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
2022-01-06 19:02:03 +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
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
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
yangsoon
3d2fcacb5a
Feat: built in gc policy to application ( #2575 )
2021-11-24 15:38:13 +08:00
Somefive
64ab932c6d
Feat: support apiserver-related multicluster features ( #2625 )
...
* Feat: remove envbinding policy into workflow
Feat: add support for env change (env gc)
Fix: fix rollout timeout setting bug
* Feat: support disable trait and env without workflow
* Fix: add hint for replaced value
2021-11-08 10:11:50 -05:00
Jianbo Sun
4ca68f2030
Fix: health check will check for multiclusters ( #2645 )
2021-11-07 11:50:27 +08:00
Tianxin Dong
85c887d3e4
Fix: change raw extension to pointer ( #2451 )
...
* Fix: change raw extension to pointer
* Test: fix ut
2021-10-13 16:16:53 +08:00
Zheng Xi Zhou
b8894b7a44
Fix: support terraform/provider-azure addon ( #2402 )
...
Also added some componentdefinitions for Azure cloud resource
2021-10-08 11:35:52 +08:00
Zheng Xi Zhou
305403ff8b
Support remote git repo for Terraform configuration ( #2337 )
...
* Fix: support remote git repo for Terraform configuration
Besides inline HCL Configuration, supprted remote git repo Configuration
* Fix: add unit-tests
* Fix: update all manifests in vela-minimal
2021-09-29 14:58:27 +08:00
Tianxin Dong
e6668ac390
Fix: do not override the workload name if its specified ( #2336 )
...
* Fix: do not override the workload name if its specified
* Fix: resolve comments
2021-09-23 15:05:25 +08:00
Jian.Li
6cbdbe84b2
Refactor application code to make it run as Dag workflow ( #2236 )
...
* Refactor: remove use of AppConfig in AppRevision
* Refactor: remove insert secret and configmap
* Feat(workflow): upgrade
* Fix(conflict): workflow cherry
* Feat(workflow): support DAG mode
* Feat(workflow): prepare steps in step
* Feat(tools): random string
* Fix(rand): gosec weak random
* Fix(ci): test passing
* Feat(workflow): generate steps
* Fix: fix rebase from master
* Fix: fix workflow ut
* Feat(test): add test cases
* Fix: fix lint and rebase from master
* Refactor: application code
* Fix: fix ci lint
* Fix: make code reviewable
* Fix: workflow_test.go
* Feat: collect services
* Fix(ci): unit tests
* Feat: make one
* Test: application with input/output and workflow
* Fix: trace test
* Fix: update step index falied
* Feat: refactor op.#Load
* Fix: delete dead code
* Refactor: op.xxx
* Fix: patch component
* Test: add generator test
* Fix: add license
* Fix: pending e2e plugin test
* Fix: disable test/e2e-test
* Fix: patch by script
Co-authored-by: 天元 <jianbo.sjb@alibaba-inc.com>
Co-authored-by: FogDong <dongtianxin.tx@alibaba-inc.com>
2021-09-12 10:12:46 +08:00
Jianbo Sun
0781937100
Fix: align all CUE template keyword to use parameter ( #2181 )
2021-08-30 11:43:20 +08:00
Yue Wang
9780ce3bef
Feat(cue): support access components artifacts in cue template context ( #2161 )
...
Signed-off-by: roywang <seiwy2010@gmail.com>
Co-authored-by: roywang <royyuewang@tencent.com>
2021-08-29 09:11:10 +08:00
Zhizhen He
1e294b3164
chore: replace github.com/ghodss/yaml with sigs.k8s.io/yaml ( #2089 )
2021-08-15 10:53:05 +08:00
Jianbo Sun
aa87d3da24
upgrade K8s dependency lib to v0.21 ( #1985 )
...
* upgrade K8s dependency to v0.21
* update CRD for new version of controller-runtime
* fix ci component revision create must fill Raw in runtime.RawExtension
* try fix test
* start control plane timeout set to 1min and fix tests
* add timeout for env test start and stop
* longer timeout time for BeforeSuit function
* upgrade kubebuilder and k8s cluster version to match with v1.21.2 in github action
* fix test
* fix resource tracker ownerRef override
* update developer guides
2021-08-03 11:30:02 +08:00
Jian.Li
a736b1f7b0
Workflow Support Resource GC ( #1970 )
...
* gc
* add test cases
* test case
2021-07-27 19:22:05 +08:00
Hongchao Deng
ed0039e1ee
[Feature] CUE Based Workflow Step ( #1935 )
...
* Workflow WIP (#1934 )
* interface
* add model value
* walk fields
* provider
* stdlin
* tasks
* add stdlib
* Adjust TaskGenerator
* Unified configmap format
* development completed
* fix import cycle
* demo passing
* upgrade action
* add value test cases
* format
* apis
* add context test cases
* fmt
* fmt
* add context to taskGenerator (#1942 )
* fix configmap test
* add workflow integration test
* upgrade code
* initial workflow commit
* interface
* add model value
* walk fields
* provider
* stdlin
* tasks
* add stdlib
* Adjust TaskGenerator
* Unified configmap format
* development completed
* fix import cycle
* demo passing
* upgrade action
* add value test cases
* format
* apis
* add context test cases
* fmt
* fmt
* add context to taskGenerator (#1942 )
* fix configmap test
* add workflow integration test
* lint code
* improve pkg[value、context] testing coverage
* Improve testing coverage(#1957 )
* add license
* add test cases
Co-authored-by: Jian.Li <74582607+leejanee@users.noreply.github.com>
Co-authored-by: Jian.Li <lj176172@alibaba-inc.com>
2021-07-22 18:53:30 +08:00
yangsoon
0611c0a79a
fix bug: failed to aggregate status if application use a kube/helm type component ( #1866 )
...
* fix aggregate status
* add test
2021-07-08 15:16:55 +08:00
yangsoon
01ed9a647c
TraitDefinition support use insertSecretTo in template to consumer cloud resource ( #1849 )
...
* traitdef support insertSecretTo
* add test
2021-07-04 21:40:43 +08:00
Yue Wang
5a778b4732
add API v1beta1.ComponentManifest ( #1814 )
...
rfc appfile pkg: remove appConfig&component
fix unit test
rfc vela cli dryrun & livediff
fix unit test & e2e test
rfc app controller: remove appConfig&component
fix unit test & e2e test
fix rollout and webhook
fix use AppRevision as others' owner
move ComponentManifest to oam.types
add a util to make conversion between AppConfig and ComponentManifest
complete Component revision mechanism in app controller
add test for component revision
rename
fix unit tests
add clean up for component revision
fix unit test
Signed-off-by: roywang <seiwy2010@gmail.com>
2021-06-24 15:06:58 +08:00
Jian.Li
4f47bec238
refactor cue related packages in vela ( #1734 )
...
* refactor-cue
* import group
* readme
* fmt
2021-06-02 15:37:06 +08:00
yangsoon
fed40a1060
fix webhook: set a default workload.type for componentdefinition which doesn't refer to a workload ( #1686 )
...
* fix webhook
* fix controller
* fix error message
2021-05-24 23:32:02 +08:00
Zheng Xi Zhou
b4ae473dae
Fix Terraform application status issue ( #1611 )
...
* Fix Terraform application status issue
Fix #1599
* add unit tests
* fix import issue
2021-05-13 21:46:45 +08:00
Zheng Xi Zhou
b3302b318c
Support server-side Terraform as cloud resource provider ( #1519 )
...
* Support server-side Terraform as cloud resource provider
Provide another schematic `Terraform` to provision cloud
resource.
Fix #698
* make namespace optional
add unit-tests
* support vela show to generate componentdefinition usage
* add unit-tests
* tidy go mod
* clean go mod and updated go sum
* Remove `variable` from `properties` of Terraform compoent
* don't literally set component catagory
* refine error message when a capability could not be found
* fix ut
* Code refactor and add unittests
* fix ci issues
* Update references/plugins/references.go
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com>
* add test cases
* fix ci issue
* revert lowercase of "Properties"
* fix ci issue
* add ut for appfile
* fix e2e issue
* add docs
* fix official site build
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com>
2021-04-30 16:28:00 +08:00
Shiwen Cheng
4b86689d63
Update copyright year ( #1464 )
...
* Update copyright year to 2021 for The KubeVela Authors
* Update copyright year to 2021 for other project authors
2021-04-11 21:00:14 +08:00
Yue Wang
2d6f2083db
refactor pkg/appfile ( #1447 )
...
Signed-off-by: roy wang <seiwy2010@gmail.com>
2021-04-11 14:10:16 +08:00
Jianbo Sun
97f45ae859
code refactor ( #935 )
...
* code refactor
* update boilerplate.go.txt
2021-01-26 10:26:41 +08:00
Ryan Zhang
d74dbb4fda
refactor application controller
2021-01-21 00:34:04 -08:00
天元
2761e7afb9
use map[string]string for scope
2021-01-11 10:54:57 +08:00
天元
8410f03eb0
addressing comments
2021-01-11 10:45:13 +08:00
天元
718a4b1999
fix ci
2021-01-07 17:52:15 +08:00
天元
de83320306
remove unused code
2021-01-07 13:07:28 +08:00
天元
4cfee561b9
refactor and add scope to application
2021-01-07 13:07:12 +08:00
Ryan Zhang
92f31a100e
make vela work with ACK and clean up
2020-12-08 17:33:27 -08:00
Hongchao Deng
306b21459e
add export command and argo gitops sample
...
Signed-off-by: Hongchao Deng <hongchaodeng1@gmail.com>
2020-12-02 22:25:57 -08:00
天元
6480873e81
change import headers
...
Signed-off-by: 天元 <jianbo.sjb@alibaba-inc.com>
2020-11-27 11:08:54 +08:00
天元
fc805214c7
standardize project structure: change api to apis
...
Signed-off-by: 天元 <jianbo.sjb@alibaba-inc.com>
2020-11-25 17:28:09 +08:00
Hongchao Deng
629ceee307
fix
...
Signed-off-by: Hongchao Deng <hongchaodeng1@gmail.com>
2020-10-30 00:08:15 -07:00
天元
091b70deba
add route tuturiol
...
Signed-off-by: 天元 <jianbo.sjb@alibaba-inc.com>
2020-10-29 17:36:51 +08:00
Hongchao Deng
b11ccee60d
add unit test for config in appfile
...
Signed-off-by: Hongchao Deng <hongchaodeng1@gmail.com>
2020-10-23 19:28:50 -07:00