wyike
85489c63b4
Fix: forbid 302 request to avoid SSRF ( #5000 )
...
* fix helm chart list endpoint SSRF CVE
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* revert error log
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* change with const value
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix ci
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-11-04 20:15:20 +08:00
Tianxin Dong
56f200fb59
Fix: deprecated resolve reference in gen open API ( #4913 )
...
* Fix: depracted resolve reference in gen open API
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-10-25 11:13:41 +08:00
Tianxin Dong
95b3b31b11
Feat: remove workflow step logs to vela workflow logs ( #4883 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-10-20 11:18:48 +08:00
Tianxin Dong
913c740a87
Chore: use use fix and optimize definitions ( #4851 )
...
* Chore: use use fix and optimize definitions
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Fix: use fields instead of structs
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-10-13 17:08:33 +08:00
Tianxin Dong
d98016aa3d
Fix: use value instead of instance in openapi.gen ( #4739 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-09-20 15:18:31 +08:00
Tianxin Dong
c3ca308489
Chore: update cue version to 0.4.3 ( #4425 )
...
* Chore: update cue version to 0.4.3
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* resolve some comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add more tests
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* rebase and add more tests
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* resolve comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-08-08 17:57:48 +08:00
Jianbo Sun
b24e7523d8
Feat: generate docs for reference automatically ( #4377 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Feat: refactor hardcode example to embd.FS
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Fix: refactor doc gen for general types
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Fix: update generate format
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Fix: generate terraform reference docs
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Feat: add definition reference generate script
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Fix: refine output format
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Fix: remove dup annotation
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Fix: update doc
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Fix: add i18n support
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Feat: add translation
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Feat: add policy definition gen
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Fix: add compatibility for lable Annotation change
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Fix: add more tests
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Feat: allow mark example doc url on annotation
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Fix: align vela show with vela def doc-gen, add vela def show equals with vela show
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-07-18 19:22:55 +08:00
wyike
5de790413f
Feat: support self-signed helm repo ( #4322 )
...
* support self-signed helmrepo
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix golint
fix golint error
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* add certkey and certfile
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-07-07 12:21:59 +08:00
Somefive
92fa67cd69
Feat: support url in ref-objects ( #4240 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-06-24 19:34:51 +08:00
Jianbo Sun
eefccfb565
Chore: seprate test into linux env which can't be execute in darwin ( #3823 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-05-07 18:14:12 +08:00
wyike
2e57be1022
Feat: support basic auth private helm repo ( #3595 )
...
* support auth
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* add test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix check diff
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix test
fix
add comments
fix test
* add tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix
add more test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* add more test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* extract set auth info as a global func
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* return bcode
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-04-12 14:33:44 +08:00
qiaozp
7e6d9ccc73
Fix: vela logs without specified resource name ( #3605 )
...
* Fix: vela logs without specified resource name
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add unittest
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2022-04-08 17:22:05 +08:00
Tianxin Dong
614472b95a
Feat: support vela show for workflow step definition ( #3140 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-01-25 15:03:38 +08:00
Zheng Xi Zhou
8033279751
Fix: Generate doc for Terraform typed ComponentDefinition ( #3041 )
...
* Fix: Generate doc for Terraform typed ComponentDefinition
When the configuration of a Terraform Typed ComponentDefinition is in
remote Git, generate the properties for it. And generated outputs for
all Terraform ComponentDefinition
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-01-05 19:45:30 +08:00
qiaozp
ac6b125b7f
Fix: error case is not tested when generate api schema ( #3035 )
...
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2022-01-04 11:14:57 +08:00
Zheng Xi Zhou
8b82a79d1d
Fix: vela port-forward supports Addon Observability ( #2977 )
...
* Fix: vela port-forward supports Addon Observability
Support port forwarding service of Addon Observability in
multiple clusters
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
* fix CI issues
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
2021-12-22 21:08:00 +08:00
Eng Zer Jun
426aa7af34
Refactor: move from io/ioutil to io and os package ( #2234 )
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <zerjun@beatchain.co >
2021-09-06 18:33:42 +08:00
Somefive
873c8299d8
fix definition controller log error cause by openapi schema generation error ( #2063 )
...
* fix definition controller log error cause by openapi schema generation failed
* fix definition controller log error cause by openapi schema generation failed
* add test
2021-08-11 13:59:46 +08:00
Kinso
e494516593
fix(openapi): only parse the parameter field ( #1790 )
...
Co-authored-by: kinsolee <lijingzhao@forchange.tech >
2021-06-15 13:36:23 +08:00
Zheng Xi Zhou
8dcbb61cb8
Generate OpenAPI JSON schema for Terraform Component ( #1738 )
...
Fix #1736
2021-06-03 11:23:20 +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
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
Zheng Xi Zhou
2a943c9429
Using Terraform as IaC module in KubeVela ( #863 )
...
* Integrate Terraform into KubeVela
Integrated Terrafrom into KubeVela to enable it to deploy
infrastruce resouces by `vela up`
* extend Terraform modules/files as WorkloadDefinition
stop printing terraform log to console
Support one workload consumes two cloud services
Refactor Terraform plugin based on Application Object
add testcase
* refactor code per reviewer's comments
fix rebase issue
* find lost code back
* refactor code to make the modification as little as to that of branch master
* remove blank lines from imports
2021-01-28 18:36:52 +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