Jianbo Sun
9042bb29d5
Fix: Jfrog Webhook Handler Cannot Get Right Image ( #4301 )
...
Merge branch 'release-1.4'
Apply suggestions from code review
Co-authored-by: lqs429521992 <lqs429521992@qq.com >
Update webhook.go
Fix: format
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Co-authored-by: qingsliu <lqs429521992@qq.com >
2022-07-01 20:04:50 +08:00
Tianxin Dong
c6d170fef6
Fix: fix the goroutine leak in http request ( #4298 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-07-01 17:52:54 +08:00
Somefive
8f11b5b1a4
Fix: kube apply ignore userinfo for rt ( #4297 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-07-01 17:30:55 +08:00
wyike
7df0f20f70
support only provide vela or kubernetes version requirement ( #4284 )
...
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
helm package logic
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
delete useless code
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-07-01 17:06:22 +08:00
Somefive
51a60593cf
Fix: context.namespace use override namespace when rendering component and trait ( #4291 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-07-01 15:28:25 +08:00
Charlie Chiang
b2dfee134b
Feat: print addon parameters recursively ( #4290 )
...
* Feat: support nested parameters in addon parameters
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Feat: show all params
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
2022-06-30 23:38:38 +08:00
huiwq1990
68d2d84880
addon use cluster sdk to check deploy ( #4282 )
...
Signed-off-by: huiwq1990 <huiwq1990@163.com >
2022-06-30 19:10:32 +08:00
Somefive
de37545a12
Feat: disable component revision for component wo rollout ( #4281 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-06-30 16:22:46 +08:00
qiaozp
7a87e6e632
Chore: avoid update version file when publish smaller version ( #4272 )
...
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2022-06-30 15:50:04 +08:00
Somefive
0469ba494e
Fix: controller use cluster client to support empty label selector selecting local cluster ( #4275 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-06-29 19:04:28 +08:00
Siege Lion
cdafc03e7d
Feat: search useful addon version automatically ( #4232 )
...
* Feat: search useful addon version automatically
Verify whether the current addon version meets the system version requirements according to the obtained specified version. There are two system version requirements: Vela core version, K8s version.
If meet the requirements and continue to perform the next task.
If the requirements are not met, obtain the highest version that meets the requirements
Refs #4181
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: Optimize function implementation and code order, and modify test cases
add more comments of function
optimize package import sequence
optimize user interaction logic and error information extraction logic
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: change template string of regular expression to const type string
Signed-off-by: HanMengnan <1448189829@qq.com >
2022-06-29 17:46:56 +08:00
Jianbo Sun
0ece1d4400
Chore: update readme ( #4279 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-06-29 16:22:55 +08:00
Somefive
ffb0d2fa87
Feat: enhance ServiceAccount trait to support privileges ( #4276 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-06-29 14:59:06 +08:00
Jianbo Sun
71df27a8c3
Fix: support stdin and url for vela ql ( #4274 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-06-29 14:50:24 +08:00
Charlie Chiang
370940070b
Feat: filter definitions by which addon installed them ( #4156 )
...
* Feat: filter by source addon in `vela def list`
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: change header year to 2022
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Refactor: use generic filters for extensibility
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Refactor: change variable addonFilter to addonName
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: update tests according to code changes
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Refactor: unify SearchDefinition params using filters
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: simplify tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: remove redundant code
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: add tests with multiple filters
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Feat: show SOURCE-ADDON column in `def list`, if any
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Feat: add addon filter to apiserver definition-lists
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: fix lint issues
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Chore: update swagger doc accordingly
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: add tests for filter Applying
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Feat: add a helper function to apply filters to lists
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: format imports
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Feat: add OwnerAddon to DefinitionBase
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: add tests for OwnerAddon field
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: add addon util tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
2022-06-29 10:55:50 +08:00
Charlie Chiang
d3454ec9d5
Feat: implement addon push command ( #4261 )
...
* Feat: implement addon push command
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Refactor: split functions
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Feat: add command usages
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: add tests for addon push command
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Chore: fix lint
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: fix old incomplete tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: also add test in pkg/addon
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: sort import
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Refactor: add break in for loop and remove default repo checks
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: format imports
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Feat: add a cli option to keep original Chart.yaml
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: add more help text
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: fix typo in comments
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: add more help text
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
2022-06-28 20:16:45 +08:00
Tianxin Dong
4ecb26e8a2
Feat: store outputs for unsuccessful steps in workflow context ( #4270 )
...
* Feat: store outputs for unsuccessful steps in workflow context
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix the test of velaql
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-06-28 18:49:17 +08:00
Jianbo Sun
0e98959d61
Fix: trim quot char for velaql output ( #4267 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-06-27 16:48:31 +08:00
Jianbo Sun
8b441b6579
Fix: provider can't be added since 1.4 as context abused && Feat: add cache for remote terraform module in vela show ( #4256 )
...
* Fix: provider can't be added since 1.4 as context abused
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Feat: add cache for remote terraform module in vela show
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Fix: add message for terraform resource in error state
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-06-27 11:31:06 +08:00
Tianxin Dong
82fc74840d
Fix: fix the dash case in if validate for inputs ( #4253 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-06-27 11:28:00 +08:00
Sumit Tembe
5b9fb49a91
Feat: omit service output if there's nothing ( #4260 )
...
Signed-off-by: Sumit Tembe <sumit.tembe@outlook.com >
2022-06-27 10:18:43 +08:00
Carmen de Lope Contreras
15a56408fc
environment from configmap or secret not mandatory in task and crontask componentdefinition ( #4252 )
...
Signed-off-by: Carmendelope <carmen@napptive.com >
2022-06-25 08:56:07 +08:00
Somefive
92fa67cd69
Feat: support url in ref-objects ( #4240 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
v1.5.0-alpha.1
2022-06-24 19:34:51 +08:00
wyike
c4e1f39d28
Feat: Support kruise rollout ( #4243 )
...
* Feat: support kruise rollout
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
resolve roll back
fix
add tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
small fix
* fix rollback
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
topology filter by owner reference
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix ci
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
add comments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix imports
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix lint
* rollback related tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
rename the operator
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix bugs
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix test
* clean args before start
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix test
* remove replace go mod
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix operation tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
Co-authored-by: Somefive <yd219913@alibaba-inc.com >
2022-06-24 18:03:04 +08:00
StevenLeiZhang
dc660fc97d
Fix: vela status print wrong STATUS ( #4239 )
...
Signed-off-by: StevenLeiZhang <zhangleiic@163.com >
2022-06-24 17:00:38 +08:00
Charlie Chiang
f8833e34bc
Feat: implement addon init command ( #4162 )
...
* Feat: implement addon create command
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Refactor: make global vars local
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: fix typos
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: create test for file utils
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Feat: use -p flag to manually specify paths
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Refactor: make changes according to comments
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Feat: create empty scaffold if Chart-related paramaters are not provided
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Refactor: fix golangci-lint warnings
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: add cli tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Feat: show URL in errors if an invalid URL is detected
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
2022-06-24 14:25:36 +08:00
Somefive
198fcfcc73
Feat: add metrics for workflow and app phase ( #4236 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-06-24 14:15:02 +08:00
wyike
22fe52b19c
Feat: skip validating version check ( #4231 )
...
* skip validating version check
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* add comments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix comments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix commments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* add compatible logic for old controller
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* modify minimal
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-06-24 14:11:57 +08:00
Somefive
9c7d3f408d
Feat: support shared resource ( #4213 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-06-24 10:56:27 +08:00
Zheng Xi Zhou
4c90e90fff
Fix: fixed the problems of display definition in web and support displaying WorkflowStep and Policy ( #4234 )
...
* Fix: fixed the problems of display definition in web
Some ComponentDefinitions, TraitDefinitions, WorkflowDefinitions
failed to show the usage in web browser
Signed-off-by: Zheng Xi Zhou <zhengxi.zzx@alibaba-inc.com >
* set printable type for {}
Signed-off-by: Zheng Xi Zhou <zhengxi.zzx@alibaba-inc.com >
* support WorkflowSteps and Policies
Signed-off-by: Zheng Xi Zhou <zhengxi.zzx@alibaba-inc.com >
Co-authored-by: Zheng Xi Zhou <zhengxi.zzx@alibaba-inc.com >
2022-06-23 19:45:49 +08:00
Tianxin Dong
e10928d96f
Feat: add mode and meta in workflow ( #4206 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-06-23 10:55:34 +08:00
Tianxin Dong
72ac218982
Feat: add timeout and if examples ( #4226 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-06-23 10:30:24 +08:00
Somefive
85173a7597
Fix: json-patch & json-merge-patch open result ( #4225 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-06-22 19:55:58 +08:00
Tianxin Dong
f7be1cd2fc
Feat: support more expressions in if and op.Fail ( #4151 )
...
* Feat: support more expressions in if
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix cache overrides context
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix skip status
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add tests in tasks
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add fail action
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix annotation in tests
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add failed reason in substeps
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix look up nil value
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add tests in workflow
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add tests in application controller
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* optimize the code
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add status in if
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix dash case
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-06-22 14:51:23 +08:00
barnettZQG
cf296b757c
Chore: change the acr registry address ( #4214 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-06-22 13:48:33 +08:00
barnettZQG
2ec18bd52e
Feat: add the API for querying the image info ( #4209 )
...
* Feat: add the API for querying the image info
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: the code style
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-06-21 15:03:55 +08:00
Somefive
73be281273
Fix: cue patch remove temp var ( #4207 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-06-20 17:36:28 +08:00
Jianbo Sun
71a02b434b
Feat: support dry run for policy ( #4201 )
...
* Feat: support dry run for policy
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* Fix: upgrade runc package
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-06-20 16:15:06 +08:00
barnettZQG
2ac3a7562d
Feat: support to manage the CLI-created apps in VelaUX ( #4197 )
...
* Feat: support for automatically hosting CLI-created apps
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: add the comment
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: unit test bug
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: unit test bug
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: e2e error
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-06-20 16:06:48 +08:00
Charlie Chiang
e81d8ddacb
Fix: skip endpoint table if no endpoints are found in addons ( #4166 )
...
* Feat: skip endpoint table if no endpoints are found in addons
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: rename function name
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: update tests to also exclude endpoints
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Refactor: reduce code changes
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
2022-06-20 10:37:40 +08:00
Zhiyu Wang
e572235434
Feat: cli def alias support ( #4185 )
...
Signed-off-by: Zhiyu Wang <zhiyuwang.newbis@gmail.com >
2022-06-18 10:34:44 +08:00
Jianbo Sun
f157515251
Feat: enhance velq ql and support cue file ( #4196 )
...
* Feat: enhance velq ql and support cue file
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
* add statement
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-06-17 13:44:09 +08:00
Somefive
6ed041c590
Fix: clear namespace for cluster scoped resource for dispatching ( #4193 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-06-16 14:29:08 +08:00
Zheng Xi Zhou
195c4267c6
Fix: fix the annotation for APIService ( #4187 )
...
Make the annatation for cert-manger be the same as the new version
secret
Signed-off-by: Zheng Xi Zhou <zhengxi.zzx@alibaba-inc.com >
Co-authored-by: Zheng Xi Zhou <zhengxi.zzx@alibaba-inc.com >
2022-06-16 11:01:18 +08:00
wyike
d2fca08acb
Feat: cli addon add registry add more git types ( #4170 )
...
* add more git types
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix comments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix comments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-06-16 10:54:23 +08:00
maoyangLiu
dc0c194833
fix typo mistake ( #4186 )
2022-06-15 19:05:08 +08:00
Somefive
27ec48b617
Fix: enhance CLI for managing OCM clusters ( #4165 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-06-15 11:18:59 +08:00
Xiangbo Ma
9d414ce123
Fix: fix trait customStatus error when controlPlanOnly=true ( #4167 )
...
Signed-off-by: fourierr <maxiangboo@qq.com >
2022-06-15 11:18:26 +08:00
Siege Lion
a9210487fa
Fix: add handle of ".yml" type in readviewfile function ( #4172 )
...
handle of files of type ".yml" is ignored in the original function
Signed-off-by: HanMengnan <1448189829@qq.com >
2022-06-15 00:29:16 +08:00
Siege Lion
0c190ef329
Feat: add the feature that views in addon are applied independently.( #3905 ) ( #4154 )
...
* Feat: add the feature that views in addon are applied independently.(#3905 )
separate the deployment of views in addon and deploy them separately instead of nested in application.
see the issue for details
Refs #3905
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: add test case of readViewFile.
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: add the apply method of yaml view.
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: add addon suit-test case
Signed-off-by: HanMengnan <1448189829@qq.com >
2022-06-13 20:07:20 +08:00