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
Jianbo Sun
66c111be6c
add appRevision into context ( #1165 )
2021-03-10 00:47:17 -08:00
Jianbo Sun
76f7f7e7a5
Merge pull request #1168 from zzxwill/definition-controller-copyright
...
Add or update copyright for workload/trait definition controllers
2021-03-10 16:11:47 +08:00
zzxwill
9afe577087
Add or update copyright for workload/trait definition controllers
...
Added or updated copyright in newly added files for
orkloaddefinition and traitdefinition controllers and
its dependencies
2021-03-10 14:18:57 +08:00
天元
339889813b
add quick start for application CRD
...
add quick start for application CRD
Update docs/en/quick-start.md
Co-authored-by: Hongchao Deng <hongchaodeng1@gmail.com >
Update docs/en/quick-start.md
Co-authored-by: Hongchao Deng <hongchaodeng1@gmail.com >
2021-03-10 10:57:26 +08:00
Zheng Xi Zhou
c2b6e6efdd
Store capability OpenAPI V3 JSON schema in ConfigMap ( #1106 )
...
* Store capability OpenAPI V3 JSON schema in ConfigMap
Store the OpenAPI v3 JSON Schema generated from the parameters of
a capability which could be used by api server
To fix #899
address comments
try to fix data race issue
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
* address comments: generate cue instance from cue json instead of local file
* update ConfigMap data at any time
* add more unit-test
* fix conflicts
* adapt to new spec.schematic.cue.template
* adapt to new spec.schematic.cue.template for controller unittest cases
* fix ci issues
* adapt to namespaced scope definition
* add more testcases on namespaced definitions with and without namespaces
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
2021-03-10 10:44:58 +08:00
roywang
6bf85f6f6e
use klog/v2 as logger in util/applicator
...
Signed-off-by: roywang <seiwy2010@gmail.com >
2021-03-08 21:15:56 +09:00
Ryan Zhang
28fce2d7de
rename applicationDeployment to appRollout ( #1146 )
...
* rename applicationDeployment to appRollout
* Update test/e2e-test/rollout_plan_test.go
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
2021-03-05 14:28:53 -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
c520a24423
fix rolling with manaul annotation and improve the demo a bit
2021-03-04 00:34:09 -08:00
Jianbo Sun
570cf01949
Merge pull request #1117 from wonderflow/cap
...
align workload/trait definition schema with v0.2.2 spec
2021-03-04 11:55:08 +08:00
天元
8c8ca60756
align workload/trait definition schema with v0.2.2 spec
2021-03-02 17:35:58 +08:00
Ryan Zhang
7207819080
fine tune rollout experience with demo ( #1119 )
...
* fine tune rollout experience with demo
* fix test
2021-03-02 17:24:12 +08:00
天元
66177ddd13
update CRD and fix workload not create first time
2021-03-02 10:13:54 +08:00
Jianbo Sun
b4b3a8ab69
parent override child when annotation/labels conflicts && one revision will apply once only in force mode && AC.status CRD updated ( #1109 )
...
* when annotation/labels passthrough from parent to child conflicts, the parent will override the child.
e.g. 1) AC will override its component/workload; 2) workload will override child-resource; 3) AC will override its trait
* apply once only force will block workload apply when revision not changed even ac generation updated
2021-03-02 10:13:54 +08:00
Ryan Zhang
abf9270473
manual e2e test example with bug fixes
2021-03-01 01:00:27 -08:00
Jianbo Sun
abaac1de2b
Merge pull request #1108 from ryanzhang-oss/fix-appcontroller-loop
...
fix application controller loop
2021-02-26 11:21:09 +08:00
Ryan Zhang
d4a47f733f
fix application controller loop
2021-02-25 18:59:54 -08:00
roywang
171e20a7d6
add unit test
...
Signed-off-by: roywang <seiwy2010@gmail.com >
2021-02-26 11:36:37 +09:00
Jianbo Sun
9bf008aa3f
Merge pull request #1102 from ryanzhang-oss/appConfig-init
...
Complete the app rollout implementation
2021-02-25 20:54:35 +08:00
Ryan Zhang
2b24bad2b8
appConfig prepare for workload rollout for the first time and complete the stand alone rollout logic
2021-02-25 00:58:17 -08:00
Jianbo Sun
97eac314de
cherry-pick( #1101 ) fix component custom revison loop infinitely create revision ( #1104 )
...
* fix component custom revison loop infinitely create revision
* use accurate compare function for revision to componentName
2021-02-25 00:52:28 -08:00
Jianbo Sun
3270bfc0da
Merge pull request #1092 from wonderflow/outputs
...
output not allowed in traitdefinition, should use outputs
2021-02-24 19:39:01 +08:00
天元
6eeb98870f
fix doc and test
2021-02-24 18:59:36 +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
9bb996e9d5
Merge pull request #1091 from ryanzhang-oss/render-workload-name
...
render the workload and trait name differently
2021-02-23 15:51:35 +08:00
Ryan Zhang
dee442eb3d
render the workload and trait name differntly
2021-02-22 21:22:54 -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
073f3bc0c7
add hashtag and consolidate libs ( #1082 )
...
* add hashtag and consolidate libs
* fix CI
2021-02-20 23:10:15 -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
062df46e47
fix ScopeDefinition not found blocking finalizer
...
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-02-10 15:50:06 +09:00
roy wang
e7396ae9ab
fix unstable unit test
...
Signed-off-by: roy wang <seiwy2010@gmail.com >
2021-02-08 17:01:39 +09:00
Jianbo Sun
da52367897
Merge pull request #1036 from captainroy-hy/fix-unstable-ut
...
quick fix unstable unit test
2021-02-08 10:04:16 +08:00
roywang
c908d8e1e7
quick fix unstable unit test
...
Signed-off-by: roywang <seiwy2010@gmail.com >
2021-02-07 22:35:59 +09:00
zhinong.gt
994c194d0f
add data passing mechanism in kubevela
2021-02-07 16:43:13 +08:00
Dylan
abe01d2add
fix: update CR's status with retry.RetryOnConflict ( #1015 )
2021-02-06 23:08:22 -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
Jianbo Sun
4b06961e6f
Merge pull request #1014 from wonderflow/definition
...
move template out from extension to spec.template
2021-02-05 15:51:44 +08:00
天元
96a589b098
move template out from extension
2021-02-05 14:45:30 +08:00
Ryan Zhang
15020660c9
cloneset controller draft
2021-02-04 17:01:22 -08:00
天元
868e0925d4
move health check and status out of extention
2021-02-04 17:56:20 +08:00
天元
87e52bb349
add demo, test and refine code
2021-02-04 14:14:52 +08:00
天元
f310665fe0
implement vela status in application CRD controller and refactor the health check code
2021-02-03 18:13:47 +08:00
Ryan Zhang
7f64974701
This PR spells out the rollout states ( #972 )
...
* add rollout state transition:
* address comments
2021-02-01 17:40:59 +08:00
roy wang
93ae8a9099
fix staticcheck issues
...
add staticcheck CI action
add staticcheck in Makefile
Signed-off-by: roywang <seiwy2010@gmail.com >
2021-01-29 18:42:03 +09:00
天元
b88309a333
fix inner containerizedworkload not work
2021-01-29 15:51:29 +08:00
天元
6922f7cfab
fix ci
2021-01-29 11:39:44 +08:00
天元
aed2494875
allow multiple outputs for workloaddefintion
2021-01-29 11:39:44 +08:00
Ryan Zhang
ad496b132a
further develop appDeployment controller
2021-01-28 17:59:31 -08:00