* only for test
test
show info
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
try to fix e2e-test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
try to fix test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
* fix comments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
* Fix: empty health policy do not check object existence
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: fix health check error
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: app use storage and env trait
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: empty health policy do not check object existence
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: fix health check error
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: add test
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: refactor CLI commands related to resources
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: remove the old test case.
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: e2e test
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: optimize test cases
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: rename 'vela pods' to 'vela status --pod'
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: optimize the e2e test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: sort the objects
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: optimize the e2e test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: list the pod by the labels
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: order the tree resource
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: set multicluster config
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: failed to assign the default role for the users who log in from dex
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: cluster e2e test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: the ensure namespace error is ignored
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: support to query the alias of the project member
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: optimize the e2e test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: support to sync the revision and the workflow status
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: pass the unit test and e2e test
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: e2e test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: update the component pod view
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: the pod struct does not match
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: optimize the e2e test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: support resource topology for endpoints
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: add and refactor the test for endpoint
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* 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>
* Fix(cli): avoid issues when using dot as local addon path
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test(cli): add tests for `vela addon enable .`
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test(cli): use sample addon to test
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test(cli): fix typos in tests accordingly
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test(cli): correct file path
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test(cli): do not focus single test
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test(cli): fix typos in tests accordingly
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: correct error output
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Co-authored-by: Zheng Xi Zhou <zzxwill@gmail.com>
Co-authored-by: Zheng Xi Zhou <zzxwill@gmail.com>
* Feat: change the default workflow step with deploy type
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: format the cue script of the deploy step
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: unit test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: error words
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: don't override user definied `region`
Fix #https://github.com/oam-dev/kubevela/issues/3384
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix check-diff
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix CI
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix CI
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix UT
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* revert some changes
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* Feat: add a api for update the ui schema
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: change the unit test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: change the unit test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: add an API to change the definition status
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: change the e2e test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: change cache key
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: change the error words
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: support alias in cluster
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Fix: add test for cluster alias
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
* Feat: add the rbac data model
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: add some api about the project
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: add CRUD about the project and the project user
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: add CRUD about the role and perm check filter function
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: update swagger config
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: add default roles and perm policies
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: add perm check filter for all webservice
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: change the method that find project name
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: query applications and envs by user perm
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: support get login user info
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: change default permissions
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: change PermPolicy to Permission
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: add some unit test and fix the e2e test error
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: change some comment word
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: e2e api path error
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Refactor: refactor multi cluster round trippers
Before adding more RoundTrippers, it would be better to expose common
logic in the utility package.
This commit exports `tryCancelRequest` at `utils` package, and make
`secretMultiClusterRoundTripper` implement `RoundTripperWrapper`
interface to allow chaining multiple round trippers.
Refs #3432
Signed-off-by: Sunghoon Kang <hoon@linecorp.com>
* Feat: reconcile app with scoped permissions
Currently, all Application resources are reconciled by the Roles bound
to the controller service account. This behavior gives us the power to
manage resources across multiple namespaces. However, this behavior can
be problematic in the soft-multitenancy environment.
This commit adds `serviceAccountName` to ApplicationSepc to reconcile
Application with the given service account for reconciling Application
with scoped permissions.
Refs #3432
Signed-off-by: Sunghoon Kang <hoon@linecorp.com>
* Refactor: extract context setter as method
https://github.com/oam-dev/kubevela/pull/3434#discussion_r825561603
Signed-off-by: Sunghoon Kang <hoon@linecorp.com>
* Feat: use annotation instead of spec
https://github.com/oam-dev/kubevela/issues/3432#issuecomment-1066460269
Signed-off-by: Sunghoon Kang <hoon@linecorp.com>
* Refactor: unify service account setter caller
https://github.com/oam-dev/kubevela/pull/3434#discussion_r825853612
Signed-off-by: Sunghoon Kang <hoon@linecorp.com>
* Refactor: rename GetServiceAccountName
https://github.com/oam-dev/kubevela/pull/3434#discussion_r826514565
Signed-off-by: Sunghoon Kang <hoon@linecorp.com>
* Feat: vela up support read from stdin
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: addon name missed in output and fix test
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Chore: refine CLI output
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: add retry-on conflict on CLI
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* add test for registry name when list addon
Signed-off-by: qiaozp <chivalry.pp@gmail.com>
* revert
Signed-off-by: qiaozp <chivalry.pp@gmail.com>
* fix
Signed-off-by: qiaozp <chivalry.pp@gmail.com>
* fix test
Signed-off-by: qiaozp <chivalry.pp@gmail.com>
* Feat: support logs for velaql
Signed-off-by: Yin Da <yd219913@alibaba-inc.com>
* Feat: extend parameter
Signed-off-by: Yin Da <yd219913@alibaba-inc.com>
* Refactor: use createOrUpdateNamespace as a common util function
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Feat: add ENV webservice handelr
* Fix: fix Env usecase logic
* Feat: Add Delete Env API
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: filter empty addon data
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Feat: split makefiels and make it clear
* Feat: add k8s utils test
* Feat: Add env update interface
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Feat: change env implementation
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: minor fix
* Revert "Fix: minor fix"
This reverts commit 9cafefa65a.
* Fix: use appusecase as parameter
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Refactor: align CLI vela env with new env design
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: minor fix
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Feat: add page index and alias of env
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: fix tests and licence header
* Fix: fix makefile and add default target
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: update build swagger.json
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: change update env api
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: list env with alias
* Feat: add log to env delete
* Fix: can not get app status
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: support update workflow and refactor code
* Fix: lint
* Fix: remove swagger check
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: fix cli vela delete
* Fix: update test
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: update test
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: app deploy unit test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: SortOrderDescending is not effective
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: e2e test case
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: support default project/target/env
* Fix: make test and add swagger
* Fix: use separated datasource for unit test
* Fix: app rollback bug
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: fix e2e test
* Fix: kubeapi driver sort bug
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: e2e test
* Fix: api e2e test
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: e2e test fix
* Fix: try fix e2e test
* Fix: api e2e test
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Co-authored-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: enable Observability in runtime clusters
Enabled add-on observability in runtime clusters. In each cluster, a sub-domain
will be allocated to the cluste
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* Fix:add workflow step definition and ut
Added a new workflow step definition `apply-application-in-parallel`,
and added more unit tests
* Feat: refactor velaql with new ResourceTracker architecture
Signed-off-by: yangsoon <yangsoonlx@gmail.com>
* Feat: concurrently request the pod created by helm
Signed-off-by: yangsoon <yangsoonlx@gmail.com>
* Fix: enhance rt logic and add docs
Signed-off-by: Yin Da <yd219913@alibaba-inc.com>
* Fix: test conflict
Signed-off-by: Yin Da <yd219913@alibaba-inc.com>
* Fix: query addon status api 500 because of secret
Signed-off-by: qiaozp <chivalry.pp@gmail.com>
* Fix: enable addon failed because the file name of the cue template is used as the component name
Signed-off-by: qiaozp <chivalry.pp@gmail.com>
* Fix: fix several oss read problem
Signed-off-by: qiaozp <chivalry.pp@gmail.com>
* fix lint
Signed-off-by: qiaozp <chivalry.pp@gmail.com>
* fix
Signed-off-by: qiaozp <chivalry.pp@gmail.com>
* use oss test endpoint
Signed-off-by: qiaozp <chivalry.pp@gmail.com>
* fix ut
Signed-off-by: qiaozp <chivalry.pp@gmail.com>
* Fix: install Terraform and apply the support for a provider in one jump
- Fix issue: addon name should not include forward-slash "/" cloud-resource fix addon name should not include forward-slash "/" #2588
- Install terraform and the provider in one jump. Instead of installing terraform
and terraform-xxx in two steps