* Feat: Refer to the generation when checking the application status
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: add the test
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: the starting status overrided the deleting status
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: support sub steps in vela status
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* add http do in stdlib
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* Chore: wrong endpoint for LoadBalancer type service(revert #4729)
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Fix: change the unit test
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: support context.clusterVersion for definition graceful upgrade
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: add test for context.clusterVersion
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: use control plane context cluster
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Feat: add content to help view
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: add the feature of viewing log of pod
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: add the container view
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: add test case and fix some bugs
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: fix some bugs
Signed-off-by: HanMengnan <1448189829@qq.com>
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: add content to help view
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: add cluster data to pod view
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: add the feature of viewing log of pod
Signed-off-by: HanMengnan <1448189829@qq.com>
Signed-off-by: HanMengnan <1448189829@qq.com>
* 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>
* Chore: use use fix and optimize definitions
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* Fix: use fields instead of structs
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
* Feat: add some feature
1. add more column of application and managed resource
2. alter <ESC> to exist key and add <Q> as the back key
Signed-off-by: HanMengnan <1448189829@qq.com>
* Refactor: refactor the yaml view and help view with singleton design pattern
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: some small fix
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: some small fix
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: add test case
Signed-off-by: HanMengnan <1448189829@qq.com>
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: beautify addon list experience
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: addon list e2e test
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Chore: refine logs
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Fix: fix the bug of cluster list
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: add some feature
1. add more column of application and managed resource
2. alter <ESC> to exist key and add <Q> as the back key
Signed-off-by: HanMengnan <1448189829@qq.com>
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: rename two interface name to make the name more specific
1. rename the ResourceListener to ViewListener
2. rename the Component to View
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: update the type of ”Main“ field in component.app
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: rename some functions of pageStack to make the name more readable
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: fix some name
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: add more test case
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: fix time format bug
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: fix test case in cluster_namespace_test.go
Signed-off-by: HanMengnan <1448189829@qq.com>
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: refactor the source of all kinds of views, use the "Factory Method" design patterns to rewrite the code to upgrade the quality of code
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: fix test case of the refactored code and some bugs
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: highlight yaml text
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: fix the bug in table stop.
Signed-off-by: HanMengnan <1448189829@qq.com>
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: refactor the source of all kinds of views, use the "Factory Method" design patterns to rewrite the code to upgrade the quality of code
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: fix test case of the refactored code and some bugs
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: rename the interface of ResourceView
Signed-off-by: HanMengnan <1448189829@qq.com>
Signed-off-by: HanMengnan <1448189829@qq.com>
* Fix: fix inconsistent menu hints
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: add the feature that a new view of yaml was added and by it the user can load the yaml text of resource
Signed-off-by: HanMengnan <1448189829@qq.com>
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: System Info & Diagnose
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix:1.misspelling 2.license
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix: pattern of imported package
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix: pattern of imported package
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix:1.return error instead of panic 2.get deployment by label instead of by namespace 3.when getting a single deployment, the result is displayed in multi rows. Feat: 1.the system info command displays the cpu and memory metrics 2.the system info command displays the numbers of ready pods and desired pods.
* Feat: 1.the system info command displays the environment variables
* Fix: Making syntax simple
* Feat(system info):1.ARGS多行展示2.指定名称时无须指定namespace3.优化界面展示,支持原始打印或者以wide/yaml形式打印4.指定名称时,打印更可读信息
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Feat:add comment
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix:syntactic redundancy
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Feat:Display all ARGS
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Feat:Display all ARGS
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
Add signoff
* Fix:1.return error instead of panic 2.get deployment by label instead of by namespace 3.when getting a single deployment, the result is displayed in multi rows. Feat: 1.the system info command displays the cpu and memory metrics 2.the system info command displays the numbers of ready pods and desired pods.
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Feat:System diagnose
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Feat:Diagnose cluster-gateway pod's status
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Feat: System Info & Diagnose
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix:1.misspelling 2.license
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix: pattern of imported package
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix: pattern of imported package
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix:1.return error instead of panic 2.get deployment by label instead of by namespace 3.when getting a single deployment, the result is displayed in multi rows. Feat: 1.the system info command displays the cpu and memory metrics 2.the system info command displays the numbers of ready pods and desired pods.
* Feat: 1.the system info command displays the environment variables
* Fix: Making syntax simple
* Feat(system info):1.ARGS多行展示2.指定名称时无须指定namespace3.优化界面展示,支持原始打印或者以wide/yaml形式打印4.指定名称时,打印更可读信息
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Feat:add comment
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix:syntactic redundancy
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Feat:Display all ARGS
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Feat:Display all ARGS
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
Add signoff
* Fix:1.return error instead of panic 2.get deployment by label instead of by namespace 3.when getting a single deployment, the result is displayed in multi rows. Feat: 1.the system info command displays the cpu and memory metrics 2.the system info command displays the numbers of ready pods and desired pods.
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
newly added system info including:
1. Cluster num
2. App running num
3. cpu and mem usage condition of vela-core
4. cpu and mem usage condition of vela-core cluster gateway
Signed-off-by: HanMengnan <1448189829@qq.com>
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: when `vela top` launch, can specify the namespace of the presentation application
Signed-off-by: HanMengnan <1448189829@qq.com>
* Feat: add filtering function to the k8s object view of the `vela top` command, which can be filtered by cluster and cluster namespace
Signed-off-by: HanMengnan <1448189829@qq.com>
Signed-off-by: HanMengnan <1448189829@qq.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>
* Feat: support set labels for env
Signed-off-by: codinghuang <codinghuang@qq.com>
* Refactor: Remove util.ParseLabelString
use k8s.io/apimachinery/pkg/labels
Signed-off-by: codinghuang <codinghuang@qq.com>
* Feat: System Info & Diagnose
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix:1.misspelling 2.license
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix: pattern of imported package
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix: pattern of imported package
Signed-off-by: foursevenlove <foursevenlove@gmail.com>
* Fix:1.return error instead of panic 2.get deployment by label instead of by namespace 3.when getting a single deployment, the result is displayed in multi rows. Feat: 1.the system info command displays the cpu and memory metrics 2.the system info command displays the numbers of ready pods and desired pods.
* Feat: 1.the system info command displays the environment variables
* Fix: Making syntax simple
* Feat: make addon init use the latest CUE addon template
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: simplify init cmd
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: ignore metadata
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: remove status
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* do not marshal to application
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: only look for output field
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: use global constant
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: update tests according to changes
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: get raw Application
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Fix: add gvk
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: git rid of managedFields
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: fix typos
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: add test and make changes according to comments
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: more help text
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: format imports
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Feat: refactor hardcode example to embd.FS
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: refactor doc gen for general types
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: update generate format
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: generate terraform reference docs
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Feat: add definition reference generate script
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: refine output format
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: remove dup annotation
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: update doc
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: add i18n support
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Feat: add translation
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Feat: add policy definition gen
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: add compatibility for lable Annotation change
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: add more tests
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Feat: allow mark example doc url on annotation
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: align vela show with vela def doc-gen, add vela def show equals with vela show
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.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: 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>
* 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>
* Feat: handle any addon parameters
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: add a error check on json marshell
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: fix tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* feature: don't ask user confirmation when delete with --force or --yes
Signed-off-by: Sumit Tembe <sumit.tembe@outlook.com>
* added a new flag 'yes'
* don't skip user confirmation for --force
* skip user confirmation for --yes
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* more note info and filter prerelease addon version
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
* wrap the error optimize the show info
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
* fix golint
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
* Feat(cli): Added an offline flag to the 'dry-run' command
Signed-off-by: Noorain Panjwani <noorain.panjwani@gmail.com>
* Using a fake client now for offline mode
Signed-off-by: Noorain Panjwani <noorain.panjwani@gmail.com>
* Fix(cli): try to get mapValue type name
Signed-off-by: Cuichen Li <cuichli@cisco.com>
* Fix: update output format based on comment and fix typo
Signed-off-by: Cuichen Li <cuichli@cisco.com>
* Style: make the change reviewable
Signed-off-by: Cuichen Li <cuichli@cisco.com>
* Fix: test
Signed-off-by: Cuichen Li <cuichli@cisco.com>
* Feat: support force delete Terraform typed application
If a Terraform typed application hangs on deletion, it could be forced to
delete by command line `vela delete xxx --force`
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix copyright
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* Upgrade terraform controller api version
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* add one more tests
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix two unit-tests
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* Feat: show available versions and dependencies in `addon status`
Also prettify output
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: show addon dependencies in `addon status`
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: adjust `addon status` output
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: remove spaces in `addon status` output
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Fix: truncate string if available versions too long
if a local addon has been installed, the AVAILABLE-VERSIONS column of the registry one will not truncate. this commit fixes that.
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Perf: avoid unnecessary network requests to improve performance
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: do not display remote info for local addons
Limit Description length when using `addon list`
Use simpler method to get addon info
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: add tests for cli/addon limitStringLength, generateParameterString
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Fix: fix output being empty if the searched addon does not exist anywhere
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: add tests for generateAddonInfo
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: add tests for generateAddonInfo and FindWholeAddonPackagesFromRegistry
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: format code
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: correct unnecessarily focused tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: remove unused code blocks
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: remove unnecessary output to stdout
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: remove added registry after tests has been completed
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: new RegistryDataStore every test, to avoid panics
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: fix failing tests due to incorrect registry name
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: move logic to get addon package out of where it is supposed to get addon status
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: add test cases for secret-getting in TestGetAddonStatus
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: return error if an addon is not installed, nor does it exist in the registry
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: rename GetAddonWholePackage to GetDetailedAddon as per wonderflow
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: require --verbose option to show details in `vela addon status`
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: require --verbose option to show details in `vela addon status`
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* chore: run make reviewable
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: fix configmap being already existed
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Fix: fix output show addon does not exist when verbose is off and an addon is not installed, but it does exist in the registry
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: fix golangci-lint issues
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Fix: resolve locally installed addons not being displayed
Addressed an issue where locally installed addons may not be displayed
if one with the same name is in the registry
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: revert incorrect auto-formatting
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: change original variable name to avoid confusions
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: add tests for outputs from `vela addon list`
when an addon with the same as registry one is locally installed
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: use more concise method to check length
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: add one more test condition for dual addons
i.e. local and registry
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: simplify testing logic by removing unneeded looping
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: add missing license header
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.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>
* Fix: use Terraform provider name as application in CLI
In CLI, use Terraform provider name as application name when
create a Provider. Also display there providers in VelaUX.
1). manually created a Terraform Provider object, like https://github.com/oam-dev/terraform-controller/blob/master/getting-started.md#aws
2). by enabling a Terraform provider addon in version older than v1.3.0
3). by create a Terraform provider via `vela provider add`
4). by VelaUX
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* add UTs
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
- For VelaUX, hidden a provider name (users don't need to manual set it). Used
the application/component name (config name) to be the provider name.
- Store description of a config to the annotation of the config application
Signed-off-by: Zheng Xi Zhou <zzxwill@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>
* support auth
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
* add test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
fix check diff
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
fix test
fix
add comments
fix test
* add tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
fix
add more test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
* add more test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
* extract set auth info as a global func
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
* return bcode
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
* add addons gitlab support
Signed-off-by: Namo <lgj112113@163.com>
* add addons gitlab support
Signed-off-by: Namo <lgj112113@163.com>
* test file edit
Signed-off-by: Namo <lgj112113@163.com>
* typo edit
Signed-off-by: Namo <lgj112113@163.com>
* notes edit
Signed-off-by: Namo <lgj112113@163.com>
* move third party imports block
Signed-off-by: Namo <lgj112113@163.com>
* code format edit
Signed-off-by: Namo <lgj112113@163.com>
* notes edit
Signed-off-by: Namo <lgj112113@163.com>
* create addon registry bug fix
Signed-off-by: Namo <lgj112113@163.com>
* add gitlab addon registry bug fix
Signed-off-by: Namo <lgj112113@163.com>
* add addon gitlab support test file
Signed-off-by: Namo <lgj112113@163.com>
* add addon gitlab support test note edit
Signed-off-by: Namo <lgj112113@163.com>
* add addon gitlab branch support and fix bug
Signed-off-by: Namo <lgj112113@163.com>
* addon gitlab registry repo name invalid
Signed-off-by: Namo <lgj112113@163.com>
Co-authored-by: Namo <lgj112113@163.com>
* Fix: support multiple-tenant cloud resources
Split terraform-xxx to two parts, the original addon will only install
definitions, and the provider object will be created by `vela provider`
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* continue
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* continue 0302
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* support `vela provider list`
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* generate a configmap in an addon terraform-xxx
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix listing providers
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* support add a provider
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* support delete a provider
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* support legacy providers
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
* fix bugs in using local filepath as markdown filename; fix bugs in parseLocalFile
Signed-off-by: Nicola115 <2225992901@qq.com>
* ignore control character mismatch between lc.TerraformConfiguration and raw text
Signed-off-by: Nicola115 <2225992901@qq.com>
* goimports
Signed-off-by: Nicola115 <2225992901@qq.com>
* store remote and local in MarkDownReference struct
Signed-off-by: Nicola115 <2225992901@qq.com>
* gofmt
Signed-off-by: Nicola115 <2225992901@qq.com>
* fix too many argument bugs in generate.go:45
Signed-off-by: Nicola115 <2225992901@qq.com>
* fix invalid comment
Signed-off-by: Nicola115 <2225992901@qq.com>
* first commit
add more tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
fix ci
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
fix ci
fix test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
* fetch only definitions from registry for lagacy addon app
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
fix ci
* fix error test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>