yangsoon and GitHub
a11ae2f95d
Add Dynamic Admission Control for ComponentDefinition ( #1648 )
...
* add webhook
* add test
* fix package discover
2021-05-15 11:43:33 +08:00
Yue Wang and GitHub
d2f471df3f
make ResourceTracker to own cluster-scope resource ( #1634 )
...
add e2e tests and unit tests
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-05-15 11:34:33 +08:00
Yue Wang and GitHub
80b2c3713b
fix staticcheck lint ( #1657 )
...
make CI work consistently with Makefile/staticcheck
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-05-14 18:49:07 +08:00
Zheng Xi Zhou and GitHub
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
yangsoon and GitHub
4ef8cb3f12
fix bug: Use stricter syntax check for CUE ( #1643 )
...
* fix cue render
* fix e2e-api-test
* add test
2021-05-13 21:44:08 +08:00
wyike and GitHub
0a4c20c999
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-12 19:00:55 +08:00
58b3fffa36
Implement retainKeys patchStrategy in CUE based patch trait ( #1627 )
...
* strategyPatch retainKeys
* merge rewrite
* rewrite strategyPatch
* Improve test coverage
* upgrade docs
* Update docs/en/platform-engineers/cue/patch-trait.md
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
2021-05-12 15:28:36 +08:00
wyike and GitHub
83c9c17cc7
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-11 19:12:25 +08:00
yangsoon and GitHub
1866753769
Enable Dynamic Admission Control for Application ( #1619 )
...
* add webhook
* fix test
* fix validating_handler
2021-05-08 21:00:33 +08:00
yangsoon and GitHub
1660930ed3
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-07 17:52:44 +08:00
Zheng Xi Zhou and GitHub
5d22e868eb
Fix unstability of ApplicationContext UT ( #1609 )
...
* Fix unstablity of ApplicationContext UT
* fix import order
* fix compatibility issue
2021-05-06 22:48:19 +08:00
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 and GitHub
0571ae3a54
Add unittests for ApplicationContext ( #1586 )
...
* Add unittests for ApplicationContext
* fix compatibility-test issue
2021-04-30 15:32:05 +08:00
wyike and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
fd44069a21
fix unit-tests ( #1569 )
2021-04-27 14:02:10 +08:00
wyike and GitHub
f625877eb1
fix componentDefinition ignore error bug ( #1567 )
2021-04-26 19:20:04 +08:00
Yue Wang and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
fb6d505e6e
fix kubectl vela -h ( #1512 )
2021-04-16 20:43:26 +08:00
wyike and GitHub
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 and GitHub
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
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 and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
9fa237721e
add app name as label for AppRevision ( #1488 )
2021-04-15 15:41:53 +08:00
Zheng Xi Zhou and GitHub
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 and GitHub
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 and GitHub
f7cfe6fbae
improve cloneset integration test suite ( #1482 )
2021-04-14 12:29:28 +08:00
Shiwen Cheng and GitHub
e8ed4d78cf
Keep docker binary command due to the issue #416 ( #1478 )
2021-04-14 11:26:35 +08:00
Yue Wang and GitHub
dcf79a9b57
fix falky unit test ( #1474 )
...
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-04-13 20:01:47 +08:00
Yue Wang and GitHub
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 and GitHub
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 and GitHub
5164efeb4a
add context.appRevisionNum ( #1466 )
2021-04-12 15:36:19 +08:00
wyike and GitHub
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 and GitHub
389722a94e
Remove duplicated logic ( #1465 )
...
Signed-off-by: LeoLiuYan <929908264@qq.com >
2021-04-12 10:24:34 +08:00
Shiwen Cheng and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
2d6f2083db
refactor pkg/appfile ( #1447 )
...
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-04-11 14:10:16 +08:00
yangsoon and GitHub
c619b7b290
fix bug which Component/TraitDefinition won't work when contains "_|_" in value ( #1450 )
2021-04-09 21:46:04 +08:00
yangsoon and GitHub
2e92a66fa5
fix data race ( #1446 )
2021-04-09 20:15:02 +08:00
Ryan Zhang and GitHub
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