yangsoon
27a5630652
Enable Dynamic Admission Control for Application ( #1619 )
...
* add webhook
* fix test
* fix validating_handler
2021-05-17 15:00:25 +08:00
Yue Wang
14334dd954
make ResourceTracker to own cluster-scope resource ( #1634 )
...
add e2e tests and unit tests
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-05-17 12:14:39 +08:00
Yue Wang
8948518d9f
fix staticcheck lint ( #1657 )
...
make CI work consistently with Makefile/staticcheck
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-05-17 12:14:19 +08:00
Zheng Xi Zhou
368dd687c2
Fix Terraform application status issue ( #1611 )
...
* Fix Terraform application status issue
Fix #1599
* add unit tests
* fix import issue
2021-05-17 12:12:36 +08:00
yangsoon
34bee10bc3
fix bug: Use stricter syntax check for CUE ( #1643 )
...
* fix cue render
* fix e2e-api-test
* add test
2021-05-17 12:12:26 +08:00
wyike
7cf425969a
fix empty rolloutBatch will panic whole controller bug ( #1646 )
...
* add webhook for app and avoid controller panic
neat imports
* add test for rollout verify
2021-05-17 12:11:37 +08:00
wyike
d2a28cbb8e
fix application rollout annotation false issue ( #1633 )
...
* fix annotation false issue
neat imports
* rewrite judge logic
* add webhook
* add webhook verify annotation
* fix test
fix bug
* modify error message
2021-05-17 12:10:33 +08:00
yangsoon
01dfedfac2
applicaiton supports specifying different versions of Definition ( #1597 )
...
* app support specify the version of definition
* add e2e-test
* add docs
* add helm related test
* fix doc
* add more test
* fix docs
2021-05-17 10:53:31 +08:00
Zheng Xi Zhou
a8605a02f9
Fix unstability of ApplicationContext UT ( #1609 )
...
* Fix unstablity of ApplicationContext UT
* fix import order
* fix compatibility issue
2021-05-17 10:52:26 +08:00
Zheng Xi Zhou and Jianbo Sun
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
Zheng Xi Zhou
0571ae3a54
Add unittests for ApplicationContext ( #1586 )
...
* Add unittests for ApplicationContext
* fix compatibility-test issue
2021-04-30 15:32:05 +08:00
wyike
29744a6f18
[Feature] embed rollout in an application ( #1568 )
...
* WIP refactor rollout reconcile
add construct func for reconcile
refactor application event
WIP fix failed test
fix event reason
delete useless yaml
fix samll issue
add more test
fix more test
add e2e test and extract rollout plan from appRevision
extract inline appRollout status from appStatus
* fix-plugin-test
* debug e2e
* fix comments and rename app-embed-test
* delete empty line
* fix docs
* update rollout docs
fix appRollout docs
* update docs and delete useless debug info
* fix deployment plugin bug and algin with rollout related workload to deployment
* fix docs comment
* rename package crossplane-runtime v1alpha2
* copy from https://github.com/wangyikewxgm/kubevela/pull/1
* fix some comments issue and add todo
* fix error test
2021-04-30 15:17:43 +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
Zheng Xi Zhou
7787fe8e6a
Fix "nil pointer" issue in UT ( #1579 )
...
When "metav1.Time" type "DeletionTimestamp" variable is nil, it cloud
not be printed while "fmt.Printf("%+v")"
Fix #1578
2021-04-28 19:25:23 +08:00
yangsoon
fd44069a21
fix unit-tests ( #1569 )
2021-04-27 14:02:10 +08:00
wyike
f625877eb1
fix componentDefinition ignore error bug ( #1567 )
2021-04-26 19:20:04 +08:00
Yue Wang
396f244af1
add deployment scale controller ( #1557 )
...
add unit test
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-04-26 10:12:11 +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
wyike
60b8ec3ff2
Set scpoe reference in application status.Service ( #1540 )
...
* WIP add new type
* add code and test
* WIP finish docs
* add sidbar for docs
2021-04-22 12:11:04 +08:00
Ryan Zhang
467506c498
Finalize deployment rollout ( #1539 )
...
* finalize deployment rollout
* refactor workload controllers to base on the same parent
2021-04-21 13:42:49 +08:00
Ryan Zhang
0ac7f02fc9
Continue to add rollout integration test ( #1535 )
...
* refine the workload controllers with test
* refine deployment rollout that supports rollback
2021-04-20 11:47:29 -07:00
Herman Zhu
b726c5291f
feat(app) add k8s event for Application ( #1463 )
...
add k8s event for Application
fixed #1424
Signed-off-by: zhuhuijun <zhuhuijunzhj@gmail.com >
fix
Signed-off-by: zhuhuijun <zhuhuijunzhj@gmail.com >
2021-04-20 12:05:36 +08:00
yangsoon
fb6d505e6e
fix kubectl vela -h ( #1512 )
2021-04-16 20:43:26 +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
Zheng Xi Zhou
0333b9e891
Refactor template_test.go to make it readable ( #1507 )
...
Some tests are not named which make it difficult to
read test cases and add more
2021-04-16 15:39:05 +08:00
f9f2c3b119
update: try to add workloadDefinitionRef to application status ( #1471 )
...
* add workloadDef in application status' services
* Update pkg/controller/core.oam.dev/v1alpha2/application/apply.go
* fix: go fmt
Co-authored-by: charles <charles.cai@sap.com >
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
2021-04-16 13:21:52 +08:00
xiqiu618 and Jianbo Sun
34684650c3
fix appContext update failed error ( #1500 )
...
* fix appContext update failed error
* Update pkg/controller/core.oam.dev/v1alpha2/applicationcontext/applicationcontext_controller.go
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
* gofmt comments
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
2021-04-16 13:05:09 +08:00
Ryan Zhang
e76992df87
randomize port to listen to separate tests ( #1497 )
...
* randomize the port
* make all tests sequential
2021-04-16 10:16:20 +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
Jianbo Sun
c6b65cbd5b
fix flaky test ( #1498 )
...
* fix flaky test
* fix flaky check apprevision created more than one
* remove unused annottaion
2021-04-15 18:25:17 +08:00
xiqiu618
9fa237721e
add app name as label for AppRevision ( #1488 )
2021-04-15 15:41:53 +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
a7bfb2fb6f
refactor appRevison extract func to utils ( #1481 )
...
* refactor appRevison extract func to utils
* add some corener case check
* add more checks
2021-04-14 15:48:23 +08:00
Ryan Zhang
f7cfe6fbae
improve cloneset integration test suite ( #1482 )
2021-04-14 12:29:28 +08:00
Shiwen Cheng
e8ed4d78cf
Keep docker binary command due to the issue #416 ( #1478 )
2021-04-14 11:26:35 +08:00
Yue Wang
dcf79a9b57
fix falky unit test ( #1474 )
...
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-04-13 20:01:47 +08:00
Yue Wang
b411d79ed0
add webhook validation on CUE template outputs name ( #1460 )
...
add hooks for process.Context to do validation
add unit test
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-04-13 19:18:15 +08:00
Yue Wang
63b348f4d8
implement cli vela system live-diff ( #1419 )
...
move dry-run and live-diff into an independent pkg
WIP add sample and doc
WIP unit test for live-diff
add unit test
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-04-13 12:29:25 +08:00
yangsoon
5164efeb4a
add context.appRevisionNum ( #1466 )
2021-04-12 15:36:19 +08:00
wyike
2254777523
ignore error not found when deleting resourceTracker ( #1462 )
...
* ingore error not found when delete resourceTracker
* ignore error not found
2021-04-12 10:57:16 +08:00
LeoLiuYan
389722a94e
Remove duplicated logic ( #1465 )
...
Signed-off-by: LeoLiuYan <929908264@qq.com >
2021-04-12 10:24:34 +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
Shiwen Cheng
2b07ec49d4
[Improvement-1457] Use kind cmd code to load docker image instead of local kind binary ( #1458 )
...
* [Improvement-1457] Use kind cmd code to load docker image instead of local kind binary
* [Improvement-1457] Update copyright year and kind repo declaration
2021-04-11 20:59:21 +08:00
Yue Wang
7edfbde2f5
skip applying helm-release if app spec not change ( #1461 )
...
Signed-off-by: roywang <seiwy2010@gmail.com >
2021-04-11 15:47:00 +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
yangsoon
c619b7b290
fix bug which Component/TraitDefinition won't work when contains "_|_" in value ( #1450 )
2021-04-09 21:46:04 +08:00
yangsoon
2e92a66fa5
fix data race ( #1446 )
2021-04-09 20:15:02 +08:00
Ryan Zhang
6d65169449
fix webhooks and try to fix e2e ( #1441 )
...
* fix webhooks and try to fix e2e
* address comments
2021-04-09 13:27:16 +08:00
yangsoon
9bf6cc2659
update version ( #1442 )
2021-04-09 12:28:04 +08:00
Zheng Xi Zhou
e8e45dd7d3
Add unit-tests for ApplicationRollout related packages ( #1413 )
...
* Add unit-tests for ApplicationRollout related packages
Part I: pkg/controller/common/rollout
* Add more unittets
* add unit tests for cloneset controller
* fix test issue
* add more unit-tests for cloneset_controller and deployment_controller
* fix rebase issues
2021-04-08 14:08:48 -07:00