Tianxin Dong
287c895daf
Fix: fix unhandled err ( #2423 )
...
* Fix: fix unhandled err
refer to https://lift.sonatype.com/result/bhamail/kubevela/01FFT7CSVNCPF6808ZM856V3HN?tab=results
* Test: fix panic err
2021-10-12 14:36:09 +08:00
barnettZQG
0d036e7449
Feat: initialize the Apiserver framework ( #2417 )
...
* Feat: add kubeapi and mongodb datastore implementation
* Style: change kubeapi import code style
* Style: change mongodb package import code style
* Style: add some comment
* Style: change databasePrefix to tableNamePrefix
* Chore: install mongodb in unit-test job
* Chore: install mongodb in compatibility-test job
* Feat: add apiserver e2e test case
* Docs: change developer guide doc
* Feat: use common.Scheme
Co-authored-by: barnettZQG <yiyun.pro>
2021-10-12 11:53:24 +08:00
Somefive
a3f48425be
Feat: use #ApplyComponent for EnvBinding ( #2382 )
...
* Feat: use #ApplyComponent in EnvBinding
* Fix: application test compRev control by resourcetracker
* Fix: add more detail in error info
2021-10-08 13:11:14 +08:00
barnettZQG
3a310f0402
Feat: Initialize api for vela dashboard and CLI ( #2339 )
...
* Change the web framework to go-restful.
* Some API specifications are defined.
* Some sample code is provided.
2021-09-26 23:09:23 +08:00
Somefive
e8d051a532
Support MultiCluster EnvBinding with cluster-gateway ( #2247 )
...
* Feat: init multicluster
* Feat: add secret namespace auto-detect
* Style: format
* Style: split gc codes
* Feat: add cluster cli
* Fix: rebase workflow on master
* Feat: add component selector for env binding
* Fix: selector & patch conflict
* Feat: add local cluster support & fix unit test
* Fix: fix omitempty bug
* Feat(health-scope): support multi-cluster's healthcheck
* Fix: resourcetracker gc bug & rename
* Feat: add multicluster to op.Read
Co-authored-by: yangsoon <songyang.song@alibaba-inc.com >
2021-09-14 20:35:10 +08:00
Yuhui Liu
7ed34b675d
Feat: add more options for leader election configuration to avoid pressure on kube-apiserver ( #2271 )
2021-09-12 18:30:59 +08:00
Jianbo Sun
537f19f06b
Fix: remove podspecworkload controller and CRD ( #2269 )
2021-09-12 10:17:09 +08:00
Eng Zer Jun
426aa7af34
Refactor: move from io/ioutil to io and os package ( #2234 )
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <zerjun@beatchain.co >
2021-09-06 18:33:42 +08:00
Somefive
32b6502e74
Feat: add pressure-test parameter optimize ( #2230 )
2021-09-03 17:29:54 +08:00
Somefive
2cea51e5e9
Feat: add pprof ( #2192 )
2021-08-30 17:19:46 +08:00
Hongchao Deng
638957a333
leave only catalog code
2021-08-12 11:13:41 +08:00
Hongchao Deng
9620fbbfca
add helm chart
2021-08-12 11:13:41 +08:00
wangyuan249
fa57fcf66e
Merge velacp to apiserver branch in oam repo ( #2039 )
...
* move velacp into vela core as apiserver
* fix lint
* add license
* fix err lint
* fix err
* rm vela install service
* add makefile
2021-08-12 11:13:41 +08:00
wyike
4eb33e9239
split out oam-spec v0.2 charts ( #1842 )
...
* WIP disable oam related controller and webhok
change velue
fix spell error
change namespace
add e2e for oam-runtime
fix charts hack
fix e2e definition namespace
fix diasble contains list
fix e2e-test
* disable components handler
* fix flaky ac test
add every definition in oam-runtime-system namespace
* upload ac e2e-test
replace files
fix upload reports
* more wait time
2021-07-01 16:32:01 +08:00
yangsoon
e217e9e0df
add autoGenWorkloadDefinition option ( #1804 )
...
add autoGenWorkloadDefinition option to choose whether to create workloaddef via webhook
2021-06-18 23:40:12 +08:00
yangsoon
2c9cf94817
add options ( #1775 )
...
1. add ConcurrentReconciles for setting the concurrent reconcile number of the controller
2. add DependCheckWait for setting the time to wait for ApplicationConfiguration's dependent-resource ready
2021-06-08 10:38:30 +08:00
Kinso
f4f72708a5
fix(log): debug level flag ( #1768 )
...
Co-authored-by: kinsolee <lijingzhao@forchange.tech >
2021-06-07 15:22:42 +08:00
yangsoon
570eaf6077
improve log system in appconfig ( #1758 )
2021-06-04 17:40:02 +08:00
yangsoon
447ab4a35a
Improve the logging system ( #1735 )
...
* change to klog/v2
* add logfilepath opt in helm chart
* replace klog.InfoF with klog.InfoS and improve messages
Remove string formatting from log message, improve messages in klog.InfoS and use lowerCamelCase to fmt Name arguments in klog.InfoS
* fix klog.Error
for expected errors (errors that can happen during routine operations) use klog.InfoS and pass error in err key instead.
* use klog.KObj and klog.KRef for Kubernetes objects
ensure that kubernetes objects references are consistent within the codebase
* enable set logdebug level
* add log-file-max-size
2021-06-03 12:07:30 +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
3543cb9b23
fix controller: fix controller cannot start due to the format error of the third-party CRD ( #1584 )
...
* fix controller
* add cue parse error
2021-04-29 20:09:27 +08:00
chival
6a956f9343
calculate e2e-test into coverage ( #1553 )
2021-04-28 15:29:08 +08:00
yangsoon
ed3e8d384a
add DefinitionRevison and make Componet/TraitDefinition revisionable && fix legacy CRD ( #1531 )
...
* add definitionrevison type
* fix controller
* add test
* fix legacy
* fix unit-tests
2021-04-26 10:07:55 +08:00
SeanLy
ef0888f256
[fix] improve k8s libs compatibility ( #1542 )
...
* [fix] improve k8s libs compatibility
* trigger tests
2021-04-21 15:29:49 +08:00
wyike
ebc8476a31
garbage collection mechanism for AppRevision ( #1501 )
...
* WIP refactor gc func
WIP write gc code
WIP update chart,cmd args
add cleanupRevison func into garbageCollection
add more test
finish unit-test
refactor use func implements
Complete e2e test
WIP rewrite some logic
add func test and rewirte context pointing to func
fix cilint
refactor some function
fix typo
fix ci error
change gc logic
after change gc number, fix all test
add check appRevision collection
WIP finish most code
* add rollout batch to fix rollout e2e-tet
* fix component name in rollout
* ignore gc error, just log the error
2021-04-16 16:46:41 +08:00
yangsoon
199e747865
Introduce vela as a kubectl plugin ( #1485 )
...
* add kubectl plugin
* add vela show
* add test
2021-04-15 18:25:46 +08:00
Zheng Xi Zhou
384c5ab6a9
Remove trait-injector from controller options ( #1490 )
...
As trait injector isn't used, so removed it.
2021-04-14 18:54:02 +08:00
wyike
74a82e0397
add header-check.sh ( #1310 )
...
add ci workflow
update scripts
add missed licence header for all files
2021-03-26 15:24:19 +08:00
Ryan Zhang
a4fda31829
Restore rollout after the change to point to appRevision ( #1271 )
...
* modify appRollout to reference appRevision
* fine tune rollout e2e tests
2021-03-24 14:09:40 -07:00
yangsoon
e8a8981ef5
delay controller sync time ( #1285 )
2021-03-24 21:23:49 +08:00
Hongchao Deng
baff3d77c4
AppDeployment: Add API types, necessary labels, and utilities
2021-03-23 22:33:54 -04:00
Jianbo Sun
acf497b1c7
make CUE inner kube package as a standalone package && clean code ( #1263 )
2021-03-23 16:30:49 +08:00
kushthedude
e978e26c25
feat: add debug-flag for enabling logs in core-run
...
Signed-off-by: kushthedude <kushthedude@gmail.com >
2021-03-19 22:29:29 +05:30
wyike
ccc5826616
Remove 3 standard controller (route autoscaler metrics ) ( #1172 )
...
* delete 4 standard controllers related code
delete related yaml
delete setup controller
add back podspecworkload controller
try to fix e2e
update related docs
fix failed test
fix docs problem
remove useless scheme
up timeout for e2e-test
change doc structure
* fix go mod
2021-03-12 14:57:59 +08:00
Ryan Zhang
1048b399fd
rename appRollout and add more fine tune tests ( #1166 )
...
* rename appRollout and add more fine tune tests
* improve rollout
* do not advance AC if we are not rolling
* fix e2e test bug
* fix the test
2021-03-11 15:56:38 +08:00
WYike
994ef23c0c
modify controller,webhook,api,chart ( #1085 )
...
solve failed test
add compatibility test for old crd
add app ns for cli
modify compatibility test
solve compatibility problem
add testing for GetDefinition func with cluster scope CRD
generate code for compatibility-test
move testdata generate to makefile
optimize ci pipeline for compatibility-test
2021-03-04 23:14:18 -08:00
Jianbo Sun
198c836849
cherry-pick( #1136 ) fix revision enable workload check and prevent GC if replica>0 ( #1141 )
...
* fix revision enable workload check and prevent GC if replica>0
* fix ci and vet
2021-03-04 18:52:48 -08:00
Ryan Zhang
abf9270473
manual e2e test example with bug fixes
2021-03-01 01:00:27 -08:00
天元
580110ed44
fix apply only once observedGeneration should mark after meet all dependency requirements && add log for apply only once
2021-02-24 17:31:31 +08:00
Jianbo Sun
dd222ac876
refactor cli/dashboard/apiserver to reference folder ( #1084 )
...
* refactor cli/dashboard/apiserver to reference folder
* address comments
2021-02-23 13:03:38 +08:00
Ryan Zhang
d3511415c2
add webhooks to the rollout plan and use AC as App snapshot ( #1031 )
...
* add webhooks
* app controller change
* add component revision and appconfig revision and test
* solidify the component revision logic and fix component revisoin bugs
* fix command cli e2e failure
* fix the bug caused by rawExtention
* fix UT test
* retry on component not found
* lint
* revert component revision create order
2021-02-19 12:11:26 -08:00
roy wang
47ab481eee
implement ApplyOnceOnlyForce
...
add unit test
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-02-06 12:58:32 +09:00
Ryan Zhang
15020660c9
cloneset controller draft
2021-02-04 17:01:22 -08:00
天元
61c256a97c
remove unused dependency installation as we have reduce 3rd party dependency , they will be installed as capability from registry
2021-01-28 14:55:25 +08:00
Ryan Zhang
e664831ff6
application deployment
2021-01-25 22:17:35 -08:00
Jianbo Sun
97f45ae859
code refactor ( #935 )
...
* code refactor
* update boilerplate.go.txt
2021-01-26 10:26:41 +08:00
Weiping Cai
75ecf2f301
support env and config storage driver ( #850 )
...
* support env and config storage driver
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io >
* use driver.LocalDriverName to replace str
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io >
2021-01-25 16:26:42 +08:00
Ryan Zhang
adbe1f9368
add the rollout code framework
2021-01-20 13:08:00 -08:00
Jianbo Sun
8d0595ed4e
Update cmd/core/main.go
2020-12-31 17:13:13 +08:00
天元
01bd05d0a5
add test for component revision hook
2020-12-31 16:41:55 +08:00