wyike
a7bfb2fb6f
refactor appRevison extract func to utils ( #1481 )
...
* refactor appRevison extract func to utils
* add some corener case check
* add more checks
2021-04-14 15:48:23 +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
5164efeb4a
add context.appRevisionNum ( #1466 )
2021-04-12 15:36:19 +08:00
Shiwen Cheng
4b86689d63
Update copyright year ( #1464 )
...
* Update copyright year to 2021 for The KubeVela Authors
* Update copyright year to 2021 for other project authors
2021-04-11 21:00:14 +08:00
yangsoon
c619b7b290
fix bug which Component/TraitDefinition won't work when contains "_|_" in value ( #1450 )
2021-04-09 21:46:04 +08:00
yangsoon
2e92a66fa5
fix data race ( #1446 )
2021-04-09 20:15:02 +08:00
Jian.Li
a446aab46b
Fix Bug: strategyUnify not work with close call ( #1430 )
2021-04-08 18:41:04 +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
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
Stupig
1444376b0c
newline is missing for BaseContextFile ( #1396 )
2021-04-01 12:07:27 +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
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
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
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
天元
1cdcf2ab48
upgrade golang ci lint to 1.38.0 and fix lint error
2021-03-16 15:06:48 +08: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
Jianbo Sun
ee93efc154
Merge pull request #1078 from dylandee/reduce-io-operation
...
improvement: reduce io operation when load appfile
2021-02-22 15:07:39 +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
Dylan
d7f64725d6
improvement: reduce io operation when load appfile
2021-02-20 11:36:39 +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
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
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
2706e63743
fix: use httptest instead of echo and rename context
...
Signed-off-by: zhangrun.zr <zhangrun.zr@alibaba-inc.com >
2021-01-18 15:52:22 +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
天元
718a4b1999
fix ci
2021-01-07 17:52:15 +08:00