huiwq1990
b0020b0600
cleanup cluster exist check ( #4357 )
...
Signed-off-by: huiwq1990 <huiwq1990@163.com >
2022-07-12 11:11:06 +08:00
Tianxin Dong
a8d5403fee
Feat: optimize imports packages to reduce 75% cpu with better performance ( #4345 )
...
* Feat: optimize imports packages
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-07-11 17:32:18 +08:00
Jianbo Sun
4bd4e9014f
Feat: support read from URL for --file command globally ( #4346 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-07-11 16:59:54 +08:00
Somefive
0cb85d897a
Fix: health check use original ns if no override and original exists ( #4349 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-07-11 16:46:14 +08:00
Somefive
2cfedf7439
Fix: escape resource name for label selector ( #4348 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-07-11 15:26:14 +08:00
Somefive
b9b6c5f8bf
Fix: ignore empty output file ( #4347 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-07-11 14:59:32 +08:00
barnettZQG
b7bf9df55f
Feat: supports multiple difference compare modes ( #4334 )
...
* Feat: supports multiple difference alignment modes
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: change field name
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-07-08 09:38:18 +08:00
Somefive
cae7b327f8
Feat: reuse informer for app metrics ( #4336 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-07-07 16:46:35 +08:00
Somefive
fd70aa96e9
Fix: disable apprev status update when apprev disabled ( #4337 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-07-07 15:32:46 +08:00
Charlie Chiang
3a6d947f07
Feat: create VelaQL views using vela ql apply ( #4324 )
...
* Feat: create VelaQL views using `vela ql create`
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: format imports
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Refactor: merge reusable function
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: format import
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 >
* Test: add tests for `status` or `export` fields
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: fix tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: fix tests
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 >
* Refactor: rename variables
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
2022-07-07 13:59:16 +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
barnettZQG
09acc8a989
Fix: the target conflict when syncing the application ( #4312 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-07-06 17:54:16 +08:00
Jianbo Sun
37605a1a8d
Fix: filter last applied config for CRD, fixes #3679 ( #4331 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-07-06 17:42:54 +08:00
wyike
4ed3171b8e
Fix: more cluster system info range. ( #4329 )
...
* more collect info
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix comments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-07-06 16:13:33 +08:00
huiwq1990
a3ab08741e
end logic not use ( #4325 )
...
Signed-off-by: huiwq1990 <huiwq1990@163.com >
2022-07-06 15:46:10 +08:00
huiwq1990
c97124a30f
Feat: add policy parser test ( #4174 )
...
Signed-off-by: huiwq1990 <huiwq1990@163.com >
2022-07-06 15:42:06 +08:00
Charlie Chiang
da5282a15d
Feat: show or list revisions in vela def get and vela show ( #4307 )
...
* Feat: support --version when getting definitions
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: add tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: add tests for vela show
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Style: format imports
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: fix tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: fix tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: fix tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
2022-07-06 15:41:00 +08:00
Somefive
4509b974ad
Feat: enhance deploy workflow step generator ( #4315 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-07-06 14:31:46 +08:00
barnettZQG
0e71a9d044
Feat: set the cloudshell instance max live time ( #4313 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-07-05 10:58:00 +08:00
Jianbo Sun
eea8570e10
Feat: add the CloudShell feature ( #4280 )
...
* Feat: add the CloudShell feature
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: unit test bug
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: handle the error
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: change the auth package
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: change the CSR name
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: change the generate function
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: unit test
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: e2e test
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-07-01 23:31:15 +08:00
barnettZQG
2af8ab13d6
Fix: fail to query the application logs with the special characters ( #4305 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-07-01 20:14:05 +08:00
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
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
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
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
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
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
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
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
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
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