yangsoon
931ca3ea3e
fix bug: When the Component contains multiple traits of the same type, the status of the trait in the Application is reported incorrectly ( #1731 )
...
* fix status
* add test
* fix webhook
* add paramter context for customStatus
2021-05-31 18:44:15 +08:00
Hongchao Deng
fa8b3ef763
refactor appfile pkg for adding workflow ( #1732 )
2021-05-30 22:57:03 +08:00
Hongchao Deng
4c7c954357
Merge pull request #1723 from hongchaodeng/wf2
...
update APIs and docs for workflow design
2021-05-29 05:44:24 -07:00
chival
a52367eced
arrange docs for kubectl plugin,fix #1721 ( #1729 )
...
* arrange docs for kubectl plugin,fix #1721
* remove redundant install doc
2021-05-29 16:40:28 +08:00
Hongchao Deng
9a10e967ee
update APIs and docs for workflow design
2021-05-28 20:44:50 -04:00
wangyuan249
0753734372
vela show support show the parameters of KUBE model ComponentDefinition ( #1693 )
...
* vela show support show the paramters of KUBE model ComponentDefinition
* fix
* fix
fix
* enchance test case and add function in show -web
fmt and vet
fix
fix522
* add resolve for kubedef type trait in reconcil process
* fix StoreOpenAPISchema args para and ret para
* fix GetCapabilityObject uncover
2021-05-26 21:16:40 +08:00
chival
0c7706d442
show&install caps in default center ( #1621 )
...
* add:show & install caps in default center and docs
other things:
* fix #1601 (.md) error
* adjust clean-md.py
* refactor capability install part to reuse code
* fix typo/bug, make get retrieve single file
* try again
* add:registry interface
* add local registry
* modify e2e test
* add copyright
* add unittest, fix docs
* add copyright
* fix e2e test
* clean up testdata
* clean up usage of fmt, rename
* fix docs, rename func
* fix docs
2021-05-25 17:22:02 +08:00
白联
30662d632b
Support patch data-pass object in CUE ( #1704 )
...
* Support patch data-pass object in CUE
* Add some unit tests
2021-05-25 11:20:09 +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
yangsoon
59a8765aa1
refactor the way of get OpenAPISchema in trait/component definition controller ( #1691 )
...
* refactor trait/componet definition controller
* fix test
2021-05-23 14:16:06 +08:00
Yue Wang
0556f03f28
fix traitDef appliesToWorkloads ( #1667 )
...
update docs
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-05-20 19:06:38 +08:00
yangsoon
7929f9fe09
fix store openapi ( #1689 )
2021-05-19 20:08:51 +08:00
wangyuan249
98a31f68ae
Add new label for configmap which store the parameter json schema of the Definition ( #1652 )
...
* fix
* add description for newlabel
fix
* fix description
2021-05-18 21:10:47 +08:00
yangsoon
d3fcbf4d45
fix bug: remove unneeded workload definitions ( #1656 )
...
* fix controller
* fix test
2021-05-17 22:47:57 +08:00
yangsoon
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
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
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
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
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
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
Jian.Li
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
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
1866753769
Enable Dynamic Admission Control for Application ( #1619 )
...
* add webhook
* fix test
* fix validating_handler
2021-05-08 21:00:33 +08:00
yangsoon
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
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
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
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
woshicai
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
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