huochexizhan
cd0b0988f9
fix: fix incorrect nil return value ( #6705 )
...
Signed-off-by: huochexizhan <huochexizhan@outlook.com >
2025-03-02 09:23:56 -08:00
Ai Ranthem
a5606b7808
Chore: (deps): Update k8s to 1.29 ( #6654 )
...
CodeQL / Analyze (go) (push) Failing after 6m23s
Definition-Lint / definition-doc (push) Failing after 3m8s
E2E MultiCluster Test / detect-noop (push) Successful in 6s
E2E Test / detect-noop (push) Successful in 3s
Go / detect-noop (push) Successful in 2s
license / Check for unapproved licenses (push) Failing after 18s
Registry / publish-core-images (push) Failing after 1m4s
Unit-Test / detect-noop (push) Successful in 20s
Sync SDK / sync_sdk (push) Failing after 3m9s
Go / staticcheck (push) Successful in 6m17s
Go / check-diff (push) Failing after 19m4s
Go / check-core-image-build (push) Failing after 5m44s
Go / check-cli-image-build (push) Failing after 3m31s
Unit-Test / unit-tests (push) Failing after 13m54s
Go / lint (push) Failing after 1h53m27s
Scorecards supply-chain security / Scorecards analysis (push) Failing after 1m27s
E2E MultiCluster Test / e2e-multi-cluster-tests (v1.29) (push) Has been cancelled
E2E Test / e2e-tests (v1.29) (push) Has been cancelled
Go / check-windows (push) Has been cancelled
* chore: update k8s to 1.29
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix: unit test
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix: lint
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix: lint
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix: e2e
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix: lint and e2e test
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* test(e2e): increase timeout
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix e2e and scripts
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com >
* make reviewable
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com >
* rollback a unnecessary ut change
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com >
* update go.mod to import merged workflow
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com >
---------
Signed-off-by: phantomnat <w.nattadej@gmail.com >
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com >
Co-authored-by: phantomnat <w.nattadej@gmail.com >
2025-01-03 07:54:42 +08:00
Tianxin Dong
4f8bf44684
Refactor: use cuex engine ( #6575 )
...
* refactor: use cuex engine
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix lint
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix unit test
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix static check and sdk tests
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix testdata
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix velaql unit test
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix docgen parser
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix cuegen
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix velaql
Signed-off-by: FogDong <fog@bentoml.com >
* fix: delete useless print
Signed-off-by: FogDong <fog@bentoml.com >
* fix: set client for ql
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix mt tests
Signed-off-by: FogDong <fog@bentoml.com >
* fix: set kubeclient in generator
Signed-off-by: FogDong <fog@bentoml.com >
* fix: use pass kube client
Signed-off-by: FogDong <fog@bentoml.com >
* fix: simplify ql
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix lint
Signed-off-by: FogDong <fog@bentoml.com >
* fix: add wf debug back
Signed-off-by: FogDong <fog@bentoml.com >
* fix: add loader
Signed-off-by: FogDong <fog@bentoml.com >
---------
Signed-off-by: FogDong <fog@bentoml.com >
2024-07-27 17:44:20 +08:00
Tianxin Dong
82dad1ebbb
Chore: update go version to 1.22 ( #6560 )
...
* chore: update go version to 1.22
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix lint
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix unit test
Signed-off-by: FogDong <fog@bentoml.com >
* fix: update static check tool
Signed-off-by: FogDong <fog@bentoml.com >
* fix: add debug
Signed-off-by: FogDong <fog@bentoml.com >
* fix: use ghcr to fix dockerhub rate limit
Signed-off-by: FogDong <fog@bentoml.com >
* fix: use ghcr for addons
Signed-off-by: FogDong <fog@bentoml.com >
* fix: add more timeout for e2e multicluster test
Signed-off-by: FogDong <fog@bentoml.com >
* fix: use ghcr
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix e2e addon image
Signed-off-by: FogDong <fog@bentoml.com >
* fix: test addon terraform version
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix admission image
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix terraform version
Signed-off-by: FogDong <fog@bentoml.com >
---------
Signed-off-by: FogDong <fog@bentoml.com >
2024-07-03 16:10:56 +08:00
Daniel Higuero
1a001e5b29
Address GolangCI lint 1.55 errors ( #6453 )
...
Signed-off-by: Daniel Higuero <daniel@napptive.com >
2024-02-07 17:27:32 +08:00
zhaohuiweixiao
189555ba16
Refactor: addon dependency installation logic ( #6045 )
...
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
2023-06-15 11:20:50 +08:00
zhaohuiweixiao
49327b8910
Fix: addon args is not changed when reinstall it without args ( #6065 )
...
* Fix: addon args is not changed when reinstall it without args
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
* Fix: addon args review modify
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
---------
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
2023-06-14 16:59:35 +08:00
merusso
be3b990df0
Feat( #5861 ): Support addon dependencies version ranges ( #6002 )
...
* Feat(#5861 ): Support addon dependencies version ranges
This change enables addon maintainers to define version ranges for
dependencies in an addon's metadata.yaml file.
This behavior is similar to the version range allowed in the `system`
section of the metadata file. The version range expression for
`dependencies` follows the same format as for `system`.
Example:
```yaml
dependencies:
- name: addon1
version: ">= 2.3.3, < 3.0.0"
- name: addon2
version: ">= 0.1.0, < 1.0.0"
```
When installing an addon, the behavior varies depending on whether the
dependency is already installed.
If a dependency is already installed, the installed version will be
validated against the version range, and installation will fail with an
error if there's a mismatch.
If a dependency is not installed, the version range will be used to
select the addon version to be installed. If no addon version matching
the range exists, the installation will fail with an error.
Fixes #5861
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): remove unused ctx parameter
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): Add comment for IsLocalRegistry
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): unexport AddonInfoMap
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): unexport addonInfo
Signed-off-by: Michael Russo <merusso@gmail.com >
* chore: replace map[string]addonInfo with addonInfoMap for consistency
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix: add short circuit when dependency version is not specified
Signed-off-by: Michael Russo <merusso@gmail.com >
* feat: Add test for multiple validation errors
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix: Run go mod tidy
Signed-off-by: Michael Russo <merusso@gmail.com >
* feat: add tests for ToVersionedRegistry
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix: simplify listInstalledAddons loop
Signed-off-by: Michael Russo <merusso@gmail.com >
* feat: listAvailableAddons returns addons from multiple sources
Changes:
* implement ListAddonInfo in Registry
* add interface to aid testing of listAvailableAddons
* add tests for listAvailableAddons
Signed-off-by: Michael Russo <merusso@gmail.com >
* refactor: simplify validateAddonDependencies
move logic from validateAddonDependencies to
calculateDependencyVersionToInstall.
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): Implicit memory aliasing in for loop.
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): non-wrapping format verb for fmt.Errorf
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): indent-error-flow: (revive)
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): unexported-return
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): exported type comment format (revive)
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): refactor AddonInfo to ItemInfo, avoid "stutter" (revive)
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): add comment to exported method Registry.ListAddonInfo
Signed-off-by: Michael Russo <merusso@gmail.com >
* fix(lint): fix stutter, rename AddonInfoLister to ItemInfoLister
Signed-off-by: Michael Russo <merusso@gmail.com >
* chore: Add suite tests for Registry.ListAddonInfo()
Signed-off-by: Michael Russo <merusso@gmail.com >
* Test: add test cases for addon.sortVersionsDescending
Signed-off-by: Michael Russo <merusso@gmail.com >
---------
Signed-off-by: Michael Russo <merusso@gmail.com >
2023-06-07 11:44:54 +08:00
zhaohuiweixiao
98deab08f5
Fix: install dependency is invalid for runtime addon when it's cluster arg is nil ( #5865 )
...
* Fix: install dependency is invalid for runtime addon when it's clusters arg is nil
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
* Fix: add unit test for getDependencyArgs and checkDependencyNeedInstall
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
* Fix: Simplified the checkDependencyNeedInstall func logic
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
* Fix: add comments for checkDependencyNeedInstall
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
---------
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
2023-04-28 10:16:33 +08:00
wyike
2821682c60
fix bug if addon parameter is Empty ( #5856 )
...
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2023-04-14 17:45:09 +08:00
Somefive
792f33d471
Feat: migrate prism cluster ( #5836 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2023-04-12 20:25:24 +08:00
Somefive
d8af202242
Feat: upgrade k8s.io to 0.26 ( #5758 )
...
* Feat: upgrade k8s.io to 0.26
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: replace temp replace
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
---------
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2023-04-10 11:19:05 +08:00
zhaohuiweixiao
76dc154e92
Refactor: the addon dependency installation logic is accurate to the cluster ( #5206 )
...
* Refactor: the addon dependency installation logic is accurate to the cluster
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
* Fix: optimize the code based on the review
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
* Feat: add unit test for func checkDependencyNeedInstall
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
---------
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
2023-04-07 17:15:44 +08:00
barnettZQG
79f1d5cb03
Chore: optimize the package dependencies ( #5596 )
...
* Chore: optimize the package dependces
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: the code style
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: remove the repetitive context
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: change the context key
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: Optimize the e2e test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
---------
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2023-03-07 16:19:37 +08:00
zhaohuiweixiao
6fa0d98547
Fix: render addon application checkDeployClusters invalid ( #5555 )
...
* Fix: render addon application checkDeployClusters invalid
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
* Feat: add getClusters test logic
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
---------
Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com >
2023-03-06 19:36:59 +08:00
wyike
c4f3026065
small optimzie for addon ( #5316 )
...
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
name the compoennt
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2023-01-11 16:10:46 +08:00
barnettZQG
f7d34cbe8a
Feat: enhance the application synchronizer ( #5299 )
...
* Feat: enhance the application synchronizer
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: e2e test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: the unit test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2023-01-11 14:20:47 +08:00
wyike
ff802ad2c5
Fix: more explicit error when addon package hasn't a metadata.yaml ( #5298 )
...
* more explicit error when addon package hasn't a metadata.yaml
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix checkdiff
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix commets
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2023-01-11 11:45:41 +08:00
barnettZQG
3a917cb6af
Fix: the addon management APIs support the user impersonation ( #5282 )
...
* Fix: the addon management APIs support the user impersonation
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: change the test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2023-01-06 15:11:56 +08:00
Jianbo Sun
78f5827fa6
Fix: move notes to the right to avoid package head to be invalid format ( #5280 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2023-01-06 10:29:34 +08:00
Jianbo Sun
dcb5378ff9
Feat: support NOTES.cue in addon for additional info printer ( #5195 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-12-16 18:07:27 +08:00
Jianbo Sun
ec07e641ee
Chore: refine logs and align using klog/v2 ( #5145 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-12-02 14:50:06 +08:00
wyike
277d94f447
Fix: bug when addon dependent an addon in other registry ( #5083 )
...
* fix several bugs of addon
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix golint error
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix error and add tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix comments and fix apiserver test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix typo
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* small fix
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* small fix
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* add parameter in apiserver and test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-11-24 09:42:28 +08:00
wyike
e706b5d4a3
add tests ( #5058 )
...
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-11-15 13:16:11 +08:00
qiaozp
a74fb181b3
Chore: remove legacy o11y logic ( #5046 )
...
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
2022-11-14 11:43:23 +08:00
qiaozp
23cbc9c91f
Feat: implement pipeline APIs ( #4908 )
...
* add context when run pipeline
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Feat: implement pipeline API
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Extract get log logic and implement getPipelineRunLog API
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Init and delete pipeline contexts
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* fix panic
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Allow not specifying context
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* change pipeline to path parameter
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Add permission check filter
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* project -> projects in route
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* fix route conflict
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Add project alias
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Feat: change the list pipeline API
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: filter the project
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: the error of the run APi
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* fix log pipeline run API
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Fix lint, fix the error of log api
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* fix error returning
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Fix: change the lable to annotation
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* remove log config not found error
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* fix pipeline list api return no context info
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Fix: create the namespace
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* get pipeline lastrun info
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* allow query single step output
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* organize code in api layer
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* fix project filter, add context value when get pp run, extend lastRun
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* fix get output and implement get input api
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Fix: change the last run
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* if query sub-step outout, return it directly
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Fix: change the run stats
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: change the output
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* flatten the input/output api
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* more info for i/o vars
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* fix nested i/o struct
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* add fromStep in input api
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* add e2e test skeleton
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* add more e2e test
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* use db to store pipeline
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* keep the last 5k lines of log
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* use stern param to keep last lines of logs
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* filter, nil labels, spec check
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* empty res, index, detail param
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* Add e2e test
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* fix e2e test and unit test
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* add context e2e test
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* goimports
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* add more test
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* review
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* remove optional tag in returned value, unify the imports name
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* fix e2e test
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* add stop test
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* more coverage
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* single case selct
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* optimize log color
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* add default permission and role
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* fix permission ut
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* change the log api implementation
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* add color, add container order
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* lint
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* fix filter nil will cut all log
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
* longer timeout and lint
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com >
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
Co-authored-by: barnettZQG <barnett.zqg@gmail.com >
2022-10-31 23:59:04 +08:00
barnettZQG
7fc3d7c23b
Fix: the api schema can not be generated ( #4889 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-10-20 10:57:23 +08:00
barnettZQG
49ed837f97
Feat: support to manage the configs by the CLI, UI, and workflow. ( #4794 )
...
* Feat: support to manage the integrations by the CLI and the workflow
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: remove the xml
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: add the unit test for the nacos writer
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: add the integration API
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: make the provider commands to be deprecated
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: make the unit test work
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: rename the integration to the config
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: make the unit test cases work
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: refactor the config commands
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: add the distribution status for the config
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: sort the import packages
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: refine the code style
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: refine the code style
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: get the content format before render the content
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: add some examples
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: the command test cases
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: add the definitions of the workflow step
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: add some tests
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: add some tests
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: change the name
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: retry the CI
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Fix: refine some words
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-10-17 17:15:45 +08:00
Somefive
668a637f86
Feat: upgrade go1.19 ( #4790 )
2022-09-28 10:19:28 +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
Jianbo Sun
cdbf14c328
Feat: support addon dry-run to get the yaml results ( #4753 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-09-19 17:24:07 +08:00
Zhiyu Wang
beabd4faf8
Fix: addon dependency 1.1 legacy support ( #4585 )
...
Signed-off-by: Zhiyu Wang <cloudsky.newbis@gmail.com >
2022-08-09 20:23:32 +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
ghostloda
ccb122d4a7
Feat: report the manifest name when addon enabling failed ( #4545 )
...
* Feat: Report the manifest name when Addon enabling failed
Signed-off-by: ghostloda <78798447@qq.com >
* Apply suggestions from code review
Co-authored-by: Jianbo Sun <wonderflow@icloud.com >
Signed-off-by: ghostloda <78798447@qq.com >
* Apply suggestions from code review
Co-authored-by: Charlie Chiang <charlie_c_0129@outlook.com >
Signed-off-by: ghostloda <78798447@qq.com >
Co-authored-by: Jianbo Sun <wonderflow@icloud.com >
Co-authored-by: Charlie Chiang <charlie_c_0129@outlook.com >
2022-08-03 13:51:20 +08:00
wyike
258d816184
Feat: Check def binding to a component ( #4531 )
...
* finish logic
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* finish tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
small fix
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix ci
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix comments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix ci
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-08-02 21:36:58 +08:00
wyike
c372578e59
Fix: check definition of addon whether is conflict ( #4493 )
...
* fix checksemver
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
override defs
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
add tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* add test and fix some special cases
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix checkdiff
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix flags
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix comments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* small fix
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-07-29 16:42:16 +08:00
Jianbo Sun
932553ac83
Chore: refactor addon enable with package ( #4467 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-07-26 15:22:37 +08:00
Jianbo Sun
8fd47ef5b9
Feat: support vela addon enable with package ( #4443 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-07-25 22:15:59 +08:00
wyike
c68061bca7
Feat: support outputs for addon ( #4444 )
...
* support outputs for addon
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-07-25 21:32:32 +08:00
Charlie Chiang
572fba3539
Fix: address failure when rendering addon API schemas ( #4433 )
...
* Fix: address failure when rendering addon API schemas
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Fix: address failure when rendering addon API schemas
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
* Test: add 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-25 17:00:57 +08:00
wyike
25b0cb8ee1
Feat: Addon support app template written by cuelang. ( #4401 )
...
* pass tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
refactor some codes
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
WIP delete useless workflow
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
add checklegacy addon
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
refactor some logics
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix panic test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
delete useless addon test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix empty clusterargs
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix comments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* rewrite some logic to support parameter ui
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* rename template cue
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix panic test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
add tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix render tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix checkdiff
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* add tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix
add more tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
add tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* update file header
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-07-22 17:58:19 +08:00
StevenLeiZhang
67f3f2747a
Fix: vela addon upgrade missing the history args ( #4388 )
...
Signed-off-by: StevenLeiZhang <zhangleiic@163.com >
2022-07-22 14:39:09 +08:00
TIEDPAG
e37b0276c8
Feat: support addon helm repo skip tls verify ( #4122 ) ( #4146 )
...
* Feat: support addon helm repo skip tls verify (#4122 )
Signed-off-by: damianqin <damianqin@tiedpag.club >
* Fix: mv http server to BeforeSuite
Signed-off-by: damianqin <damianqin@tiedpag.club >
* Fix: fix ci error
Signed-off-by: damianqin <damianqin@tiedpag.club >
* Fix: fix merge
Signed-off-by: damianqin <damianqin@tiedpag.club >
* Feat: support addon helm repo skip tls verify (#4122 )
Signed-off-by: damianqin <damianqin@tiedpag.club >
* Fix: mv http server to BeforeSuite
Signed-off-by: damianqin <damianqin@tiedpag.club >
* Fix: fix ci error
Signed-off-by: damianqin <damianqin@tiedpag.club >
* Fix: fix ci
Signed-off-by: damianqin <damianqin@tiedpag.club >
Co-authored-by: damianqin <damianqin@tiedpag.club >
Co-authored-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-07-19 18:00:28 +08:00
Charlie Chiang
ace23f1c6f
Feat: enhance addon init ( #4370 )
...
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com >
2022-07-18 10:40:42 +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
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
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
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
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
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