zzxwill
674408784b
address comments and add one more testcase
2021-01-08 15:46:30 +08:00
zzxwill
2243632d0c
Add unit-test for generateOpenAPISchema
...
Added title for all fields and added unit-test for generateOpenAPISchema FixOpenSchema,
2021-01-06 14:36:36 +08:00
Jianbo Sun
775991cfaa
Merge pull request #784 from zzxwill/form-render
...
Implement API for generating OpenAPI schema for definition
2021-01-06 11:58:20 +08:00
Zheng Xi Zhou
da097989f8
Update pkg/appfile/service.go
...
Co-authored-by: Hongchao Deng <hongchaodeng1@gmail.com >
2021-01-06 11:05:37 +08:00
zzxwill
53164a4d2f
Implement API for generating OpenAPI schema for definition
...
Fetched cue parameters from workloaddefinition/traitdefinition, generated
OpenAPI v3 schema, fixed problems of tainted `description` filed, added filed
"title" required by form-render component, added it in API server router
To fix #680
2021-01-05 21:57:38 +08:00
天元
01bd05d0a5
add test for component revision hook
2020-12-31 16:41:55 +08:00
Jianbo Sun
810cbcaae4
Merge pull request #841 from zzxwill/issue-trait-no-definition
...
Allow trait to work without TraitDefinition
2020-12-31 10:52:01 +08:00
zzxwill
dfdb833abe
Check trait CR is created and update ApplicationConfiguration
2020-12-31 09:16:56 +08:00
天元
02bb9a1dc1
refine error message: trait definition not found
2020-12-30 18:25:30 +08:00
Ryan Zhang
b25e911a74
use the correct cue parse api
2020-12-29 13:24:04 -08:00
zzxwill
d8d891f6c9
Allow trait to work without TraitDefinition
...
Fix the issue of applying trait if its traitdefinition
doesn't exits.
To fix issue #839
2020-12-30 00:14:26 +08:00
Jianbo Sun
a7f823940c
Merge pull request #832 from wonderflow/application
...
refactor application object to have basic schema
2020-12-29 17:11:35 +08:00
天元
3a47d5de73
refactor application object to have more strict schema
2020-12-29 15:48:32 +08:00
zzxwill
509895511b
Expend column width for "vela workloads/traits"
...
Expended column width for `vela workloads/traits` and also
shortened the description for all workloads and traits.
Fixed a tiny issue in hack/reference/generate.go
To fix issue #827
2020-12-28 20:57:22 +08:00
Weiping Cai
c0ebe8dc62
support mutli storage resources,define storage interface and implemen… ( #776 )
...
* support mutli storage resources,define storage interface and implement local storage
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io >
* support mutli storage resources,define storage interface and implement local storage
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io >
* support mutli storage resources,define storage interface and implement local storage
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io >
* support mutli storage resources,define storage interface and implement local storage
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io >
* move application/Application to storage/driver pkg
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io >
* update storage import format
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io >
2020-12-28 18:39:58 +08:00
Jianbo Sun
e8cabdc13c
Merge pull request #824 from zzxwill/issue-workloads
...
Add "description" field for each workload from ListWorkloads API
2020-12-28 10:02:01 +08:00
Jianbo Sun
a03d9f2626
Merge pull request #828 from zzxwill/issue-vela-workloads
...
Refine error message for trait without `spec.extension.template`
2020-12-27 11:06:50 +08:00
zzxwill
37cb5ccb51
Add "description" field for each workload from ListWorkloads API
...
Workload item doesn't have descriptin property, added it to help display
the description in capability list on Dashboard
2020-12-25 19:04:54 +08:00
zzxwill
4c34048186
Refine error message for trait without spec.extension.template
...
Error message of trait without `spec.extension.template`
adheres with normal message when executing "vela workloads".
To fix #826
2020-12-25 18:25:19 +08:00
Jianbo Sun
32bc74456a
Merge pull request #810 from Cweiping/fix/fix_promethus_typo_error_2
...
fix typo error of promethus
2020-12-25 17:39:22 +08:00
Jianbo Sun
69dcf2fc5a
Merge pull request #807 from wonderflow/datainput
...
support strategy patch datainput merge for slice case
2020-12-25 12:42:13 +08:00
天元
e3b4bcd2ca
support custom component revision
2020-12-25 09:40:54 +08:00
Weiping Cai
ab6a170c1d
fix typo error of promethus
...
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io >
2020-12-24 14:00:17 +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
Yue Wang
630f1e48bc
enable webhooks for AppConfig/Comp ( #781 )
...
rename webhooks
fix e2e tests
Signed-off-by: roywang <seiwy2010@gmail.com >
2020-12-23 11:02:06 -08:00
天元
4bed55b400
support strategy patch datainput merge for slice case
2020-12-23 21:53:05 +08:00
Jianbo Sun
54ca5c115f
Merge pull request #774 from captainroy-hy/trait-conflict-validation
...
implement conflictsWtih feature in trait definition
2020-12-23 13:32:38 +08:00
Zheng Xi Zhou
ddba62fba0
Generate restful api based on Swagger ( #765 )
...
* Generate restful api based on Swagger
As OpenAPI has to be quickly developped to support front-end developement, so
did the restufl api docs. Based on swagger, generate the docs automatically
* fix conflicts and add application list annotation
2020-12-22 16:35:26 -08:00
Jianbo Sun
2943bc7ce1
Merge pull request #797 from wonderflow/fixrevision
...
fix workload reconcile error when revision enable trait is attached
2020-12-21 22:27:47 +08:00
Jianbo Sun
da0f8916aa
Merge pull request #790 from zzxwill/issue-vela-install
...
Refine error message for vela installation
2020-12-21 21:15:21 +08:00
天元
7609da212f
fix workload can not be update when revision enable trait is attached
2020-12-21 21:12:19 +08:00
Zheng Xi Zhou
7f87a47832
Update pkg/commands/system.go
...
Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com >
2020-12-21 18:05:42 +08:00
zzxwill
a54ba9bb54
Refine error message for vela installation
...
Refined error message for vela installation and increase
timeout to 5 minutes from 2 minutes. And did some code
refactoring
To fix issue #783
2020-12-18 19:41:38 +08:00
Hongchao Deng
af61b59c5e
return go time in Format RFC3339 to match js Date ( #785 )
...
Signed-off-by: Hongchao Deng <hongchaodeng1@gmail.com >
2020-12-17 20:11:18 -08:00
majian
c09e4df452
1.add application list page ( #779 )
...
2.ignore the deleted applicationconfig resource instead return nil
3.code style fix
2020-12-17 09:22:38 -08:00
roywang
582c3788c4
implement TraitConflict check in webhook
...
add unit tests
Signed-off-by: roy wang <seiwy2010@gmail.com >
2020-12-16 18:01:44 +09:00
天元
3cb172f7ff
minor fix
2020-12-15 13:55:36 +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
Jianbo Sun
ef9c26ffec
Merge pull request #686 from majian159/hotfix-notfound-error
...
application not found return error. fix #685
2020-12-14 10:41:14 +08:00
majian
cf2a57c96a
Integrate swagger and add env api ( #764 )
...
* 1.swagger integrate
2.add env swagger comment
Signed-off-by: majian <majian159@live.com >
* use swagger.json
Signed-off-by: majian <majian159@live.com >
2020-12-12 08:54:33 -08:00
Jianbo Sun
3c35d9dadc
Merge pull request #684 from majian159/feature-exec-svc
...
add svc flag for exec command.
2020-12-11 20:53:41 +08:00
majian
07742b6349
application not found return error. fix #685 and fix unit tests
...
Signed-off-by: majian <majian159@live.com >
2020-12-11 19:54:18 +08:00
majian
d45d086efb
add svc flag for exec command and add unit test
...
Signed-off-by: majian <majian159@live.com >
2020-12-11 19:32:50 +08:00
roywang
d14558a227
fix golint issues
...
Signed-off-by: roywang <seiwy2010@gmail.com >
2020-12-10 12:10:52 +09:00
roywang
a961b002c2
faster refresh capabilities
...
Signed-off-by: roywang <seiwy2010@gmail.com >
2020-12-09 23:51:04 +09:00
roy wang
58bef9791f
fix cmd uitable wrap issue
...
Signed-off-by: roy wang <seiwy2010@gmail.com >
2020-12-09 19:48:17 +09:00
Jianbo Sun
bb6b050d15
Merge pull request #745 from ryanzhang-oss/ack-cleanup
...
make Vela work with ACK and clean up imports and scripts
2020-12-09 11:59:35 +08:00
ryan
3211c89610
fix: load appfile
2020-12-09 11:33:26 +08:00
Ryan Zhang
92f31a100e
make vela work with ACK and clean up
2020-12-08 17:33:27 -08:00
Jianbo Sun
1ec07b0198
Merge pull request #722 from wonderflow/doc
...
add some detail for route design
2020-12-07 11:29:13 +08:00