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 and Jianbo Sun
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
68d5e6cdcc
Merge pull request #1142 from ryanzhang-oss/e2e-test
...
add rollout cloneset based rudimentory e2e test
2021-03-05 12:15:49 +08:00
Ryan Zhang
c121d33b2c
fix webhook nil pointer
2021-03-04 19:20:02 -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
Ryan Zhang
eac2d37551
add webhook and kruise ( #1135 )
2021-03-03 23:21:02 -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
Holger Protzek
d6f28bfd9e
Removed prometheus and certmanager crd's ( #1005 )
...
* Removed prometheus and certmanager crd's, use cert-manager helm chart dependency instead
* Fixed unit and 2e2 tests. Added servicemonitors and certmanager crd dependencies for tests as testdata.
* Run `helm dependency update`
* Delete kubevela helm release and namespace if existing
* WIP - Bad hack to add the certmanager crds before installing kubevela with cert-manager as dependency. The cert-manager crds are not available, when kubevela Issuer are installed otherwise.
* WIP Added admission patch for webhook
* WIP Refactored secrets config
* WIP Fixed helm chart
* WIP Disabled metrics cap, due missing prometheus dependency by default
* WIP Added certmanager for e2e tests
* WIP Added certmanager for e2e tests
* WIP cleanup
* Updated docs
* Re-added certificate mount path
2021-02-26 16:46:01 +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
Ryan Zhang
b564e0ef26
add more code to complete the rollout plan ( #1024 )
2021-02-05 12:08:19 -08: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
Holger Protzek and Jianbo Sun
f737379738
Added ingressClass to route trait ( #947 )
...
* Added ingressClass to route trait
* typo
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
* run make reviewable
* fixed ingress test
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
2021-02-02 09:52:20 +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
Jianbo Sun
5c188dd9cc
Merge pull request #952 from wonderflow/removecode
...
remove unused dependency installation
2021-01-29 14:58:57 +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