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
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
yangsoon
2e92a66fa5
fix data race ( #1446 )
2021-04-09 20:15:02 +08:00
Jian.Li
15b1bd2660
Fix the bug that the registered k8s built-in gvk does not exist ( #1414 )
...
* fix bug for method exist(gvk)
* check that all built-in k8s resource are registered
2021-04-07 13:06:19 +08:00
Jian.Li and 天元
4b25ed4ba1
fix import inner package in the format of third party package path and split test cases ( #1412 )
...
* test third party path in cue
* fix typo
* fix pkg mount bug
Co-authored-by: 天元 <jianbo.sjb@alibaba-inc.com >
2021-04-02 13:04:52 +08:00
Hongchao Deng
2d95800618
Merge pull request #1352 from wonderflow/hongchaodeng-revlabel
...
add AppRevision label to cuetemplate
2021-03-29 05:26:52 -07:00
Jian.Li
567fc46642
fix unstable test case for crd package ( #1341 )
...
* check crd openapi exist
* space
* fmt
* remove space
* space
* remove space
* space
* test +1
* test +2
* test +3
* rebase master
2021-03-29 20:02:39 +08:00
天元
b5cbc75734
add FinalizeAppRevision
2021-03-29 19:50:40 +08:00
天元
05c0fb8f9a
fix test
2021-03-29 19:45:29 +08:00
天元
26b9db6322
Merge branch 'revlabel' of git://github.com/hongchaodeng/kubevela into hongchaodeng-revlabel
2021-03-29 17:35:36 +08:00
Zheng Xi Zhou and Jianbo Sun
9e40b77b60
Support cloud resource provisiong and consuming ( #1264 )
...
* Support cloud resource provisioning and consuming (Crossplane)
Provided a way to store secret for cloud resource generated by
Crossplane and to consume the secret
Refer to #1128
* Separate cloud resource producer and consumer in two applications
* add unit test to check whether application can consume cloud resource secret
* update Cloud Resource doc
* Provisioning and consuming cloud resource in different applications v1 (one cloud resource)
* one component consumes two cloud resources
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
2021-03-29 17:20:33 +08:00
yangsoon
ba78ea7f0e
fix link & add upgrade step in installation ( #1345 )
2021-03-29 16:12:15 +08:00
Hongchao Deng
02976bea67
fix common labels
2021-03-29 01:35:40 -04:00
Hongchao Deng
66bcb612ef
add appdeployment control logic ( #1320 )
...
* add appdeployment control logic
* fix check
* fix test
* add test
* comment
2021-03-28 18:18:47 -07:00
Jian.Li
cfabcee181
Import kube package(cue) by GroupVersion ( #1309 )
...
* package upgrade
* package import
* Classified by groupversion
* fix test cases
* add test cases
* check diff
* lint code
* fix test
* add pacakge reference
* VersionKind
* package upgrade
package import
Classified by groupversion
fix test cases
add test cases
check diff
lint code
fix test
add pacakge reference
VersionKind
fix ci
2021-03-28 18:08:31 +08:00
wyike
74a82e0397
add header-check.sh ( #1310 )
...
add ci workflow
update scripts
add missed licence header for all files
2021-03-26 15:24:19 +08:00
Jianbo Sun and yangsoon
53ae9aaa40
add webhook convert. ( #1282 )
...
fix diff
update example and test data version
fix convert function
fix e2e for helm
clean up creationTimestamp in a hack way
fix ci
pending package suit test
fix group version
fix ci
fix ut
rename type to kind
fix example
fix conflicts
Co-authored-by: yangsoon <yangsoonlx@gmail.com >
2021-03-24 17:15:20 -07:00
yangsoon
fc55b65aad
Compatible with Application containing WorkloadDefinition type helm moudle ( #1261 )
...
* add workloaddef ref to helm.
* fix package_suit_test
* show git diff result.
2021-03-24 21:22:29 +08:00
Jianbo Sun
9366c6e0b4
add hpa trait and fix template without params ( #1279 )
2021-03-24 16:18:58 +08:00
Jianbo Sun and yangsoon
320651c80d
add doc for cue development guide ( #1269 )
...
* create toc
* add CUE development-guide
* fix dry-run description
* Update docs/en/cue/development-guide.md
* finish the guide
* fix ci and sidebar
Co-authored-by: yangsoon <yangsoonlx@gmail.com >
2021-03-24 11:08:09 +08:00
Jianbo Sun
acf497b1c7
make CUE inner kube package as a standalone package && clean code ( #1263 )
2021-03-23 16:30:49 +08:00
天元
7931e2a0a5
more useful vela system dry-run
2021-03-20 12:51:00 +08:00
Jian.Li
e4a5b17e90
Support import K8s native API and CRD in definition ( #1211 )
...
* vela builtin package
* add test cases
* add gvk test cases
* lint
* testEnv
* lint
* check-diff
* Optimized code
* test case split
* add docs
2021-03-18 22:22:40 -07:00
Jianbo Sun
66c111be6c
add appRevision into context ( #1165 )
2021-03-10 00:47:17 -08:00
天元
6eeb98870f
fix doc and test
2021-02-24 18:59:36 +08:00
天元
98b059c0ae
output not allowed in traitdefinition, should use outputs:<resource>:<full object>
2021-02-23 16:20:30 +08:00
Jian.Li
95cd9bb198
Use "context.outputs" to reference auxiliary objects defined in the definition template ( #1087 )
...
* refer outputs
* add docs
* update docs
* rename object
2021-02-22 21:36:57 -08:00
Jian.Li
8f83e3dd98
Use context.output instead of context.input to refer to the output object defined in the WorkloadDefinition ( #1076 )
...
* use output instead of input to reference workload
* const
2021-02-20 13:29:48 +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
lj176172
dd6810314e
status app
2021-02-02 21:23:01 +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
Jianbo Sun
97f45ae859
code refactor ( #935 )
...
* code refactor
* update boilerplate.go.txt
2021-01-26 10:26:41 +08:00
Jianbo Sun
72ee26dbb4
add advanced trait tutorial ( #921 )
...
* add advanced trait tutorial
* add more intersiting trait
* init container and patch
* add more traits
* node affinity
* addressing comment
2021-01-25 10:53:36 +08:00
zhangrun.zr
f55dd467b9
feature: add healthcheck policy for workload and trait by cue template
...
Signed-off-by: zhangrun.zr <zhangrun.zr@alibaba-inc.com >
2021-01-19 13:03:05 +08:00
zhangrun.zr
732d8f76d3
feature: add http task for application cue template
...
Signed-off-by: zhangrun.zr <zhangrun.zr@alibaba-inc.com >
2021-01-15 19:20:39 +08:00
天元
8410f03eb0
addressing comments
2021-01-11 10:45:13 +08:00
天元
3d3b3239d8
add trait type
2021-01-05 21:18:27 +08:00
Jian.Li
1f2c38d3c7
supports strategy patch for definition template ( #798 )
...
* supports strategy patch for definition template
* strategy unify
* lint code
* test cases
* add docs
* add test cases
* lint code
* add test cases for walk
* fix close fun
* lint code
* const variable for patchKey
* lint code
* interceptor for ast.Node
* add test cases
* check diff
* strategyUnify
* listMergeByKey
* prompts
2020-12-24 13:35:34 +08:00
Jian.Li
e882a650ae
Extend application's capabilities by trait definition ( #742 )
...
* add dsl pkg
* realize context capabilities for application
* fix golint
* fix check-diff
* upgrade vela server sample
* comment group
* Definition Reference be Optional & fix three-part trait crd apply without namespace
* Improve samples
2020-12-13 20:00:06 -08:00