d910bb7928
[Backport release-1.3] Chore: sync the cli binaries to OSS ( #3785 )
...
* Feat: show the parsing capability error message
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
(cherry picked from commit 99b57236eb )
* Chore: sync the cli binaries to OSS
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
(cherry picked from commit 81e01e7f56 )
Co-authored-by: barnettZQG <barnett.zqg@gmail.com >
2022-04-29 10:14:43 +08:00
8f5eaefd89
Fix: kubectl check err ( #3779 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
(cherry picked from commit 3bbcbe0e6f )
Co-authored-by: Somefive <yd219913@alibaba-inc.com >
2022-04-28 16:33:28 +08:00
7c3a35ae87
[Backport release-1.3] Fix: addon cli parse any type ( #3777 )
...
* fix addon parse any type
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
(cherry picked from commit fdda3a70e5 )
* test int
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
(cherry picked from commit ca47004529 )
Co-authored-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-04-28 16:08:48 +08:00
Zheng Xi Zhou and GitHub
3728857c82
Fix: use Terraform provider name as application in CLI ( #3742 ) ( #3756 )
...
* 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 >
2022-04-26 22:17:17 +08:00
4b31274bda
[Backport release-1.3] Fix: velaux addon hint after enable ( #3760 )
...
* Fix: velaux addon hint after enable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
(cherry picked from commit 5adfd6210f )
* check if upgrade
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
(cherry picked from commit 5a7467a494 )
Co-authored-by: qiaozp <chivalry.pp@gmail.com >
2022-04-26 16:47:36 +08:00
efa9dedb85
Fix: vela-cli does not print cluster name, if application installed in default cluster ( #3740 )
...
Signed-off-by: StevenLeiZhang <zhangleiic@163.com >
(cherry picked from commit 3819981dd4 )
Co-authored-by: StevenLeiZhang <zhangleiic@163.com >
2022-04-24 09:17:39 +08:00
166c93d548
Fix: set provider name as the config name ( #3695 )
...
- 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 >
(cherry picked from commit e3feeeec24 )
Co-authored-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-04-18 16:48:37 +08:00
82075427e6
Fix: vela status tree show cluster alias & raw format ( #3661 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
(cherry picked from commit 4ff0f53c04 )
Co-authored-by: Somefive <yd219913@alibaba-inc.com >
2022-04-14 19:40:14 +08:00
Somefive and GitHub
64d063ccfe
[Backport release-1.3] vela status tree & controller flags fix ( #3649 )
...
* Feat: vela status --tree (#3609 )
* Feat: vela status --tree
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: support show not-deployed clusters
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add tests
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add multicluster e2e coverage
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Chore: minor fix
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: cli default switch on feature flags (#3625 )
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: support alias in cluster (#3630 )
* 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: rework vela up to support specified revision (#3634 )
* Feat: rework vela up to support specified revision
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add legacy compatibility
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: fix test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: enhance vela status tree print (#3639 )
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-04-14 16:36:35 +08:00
a13cab65b2
[Backport release-1.3] Feat: support basic auth private helm repo ( #3631 )
...
* support auth
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
(cherry picked from commit 54c05afb1a )
* 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
(cherry picked from commit a8961ec8cc )
* add tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix
add more test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
(cherry picked from commit 4f45a6af8e )
* add more test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
(cherry picked from commit dee791aa51 )
* extract set auth info as a global func
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
(cherry picked from commit f8fb0137e3 )
* return bcode
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
(cherry picked from commit 057a67d8b9 )
Co-authored-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-04-12 16:10:48 +08:00
github-actions[bot] and GitHub
f83d88cfb0
[Backport release-1.3] Fix: add terraform aws provider without AWS_SESSION_TOKEN ( #3594 )
...
* Fix: add terraform aws provider without AWS_SESSION_TOKEN
Fix #3589 and refine prompts for cli
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
(cherry picked from commit 904a72857b )
2022-04-07 17:03:35 +08:00
wyike and GitHub
ef4b9816e1
fix bug ( #3569 )
...
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix bugs
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix
fix
2022-04-01 01:04:29 +08:00
Jianbo Sun and GitHub
3157efd421
Chore: refine chart readme and notes ( #3563 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-03-31 17:33:06 +08:00
qiaozp and GitHub
c6b9abe4c4
Chore: bump k8s version contraint ( #3560 )
...
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2022-03-31 16:42:14 +08:00
wyike and GitHub
0ada407fbe
optimize the ux of addon ( #3557 )
...
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix
fix
2022-03-31 10:24:20 +08:00
qiaozp and GitHub
de84421487
Feat: add name param in vela logs ( #3556 )
...
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2022-03-30 17:56:59 +08:00
wyike and GitHub
47050c90b6
Fix: cli addon multicluster bug ( #3547 )
...
* fix addon multicluster bug
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
delete useless test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
asd
asd
* fix test race condition
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-03-29 23:03:57 +08:00
Zheng Xi Zhou and GitHub
5d61cee3f6
Fix: support multiple-tenant cloud resources ( #3305 )
...
* 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 >
2022-03-28 21:55:33 +08:00
wyike and GitHub
161d2646cb
Feat: helm repo as addon registry to support addon's multi-version ( #3523 )
...
* versioned registry impl
add more test
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix ci
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix ui
fix
fix
fix
modify addon registry
2022-03-28 21:25:38 +08:00
Avery and GitHub
4f8e7506f9
Fix: fix bugs in vela def doc-gen from local file ( #3490 )
...
* 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 >
2022-03-28 20:57:24 +08:00
Somefive and GitHub
795231ceb5
Feat: add revision command ( #3506 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-28 14:47:47 +08:00
Tianxin Dong and GitHub
aaa1db8760
Fix: fix workflow cli must have workflow in spec ( #3469 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-03-23 17:16:39 +08:00
Jianbo Sun and GitHub
c5baa1cae9
Feat: support specify cluster in addon installation ( #3497 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-03-23 14:33:15 +08:00
Jianbo Sun and GitHub
e5fd150cd5
Fix: add client validation and severside dry run for vela dry-run ( #3485 )
...
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com >
2022-03-22 16:39:36 +08:00
wyike and GitHub
a6460d67b6
Feat: check if an addon is been used while disabling. ( #3457 )
...
* 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 >
2022-03-21 10:38:56 +08:00
wyike and GitHub
13c420dada
Fix: optimize helm repository logic put cache lower layer and return bcode when error ( #3466 )
...
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-03-18 18:36:19 +08:00
Avery and GitHub
3634ad6f18
Fix: enable provider elastic ( #3453 )
...
* enable provider ec
Signed-off-by: Nicola115 <2225992901@qq.com >
* rename provider ec as elastic
Signed-off-by: Nicola115 <2225992901@qq.com >
2022-03-16 15:07:25 +08:00
barnettZQG and GitHub
20583e089a
Feat: support query applied resources by velaQL ( #3423 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-03-11 21:22:58 +08:00
wyike and GitHub
b13132ceba
Feat: helm chart keep fluxcd addon while delete ( #3404 )
...
* keep fluxcd addon will delete
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-03-11 14:46:28 +08:00
Somefive and GitHub
70408e4712
Feat: support vela cluster labels add/del to manage cluster labels ( #3413 )
...
* Feat: add vela cluster label command
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Feat: add vela cluster label command to help manage cluster labels
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: add e2e test
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Fix: use vela cluster labels
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-11 14:13:17 +08:00
Somefive and GitHub
a8dfc99ec9
Fix: pend registry test ( #3420 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-11 11:35:40 +08:00
Somefive and GitHub
d8f95c9cf8
Feat: support multicluster service in application status ( #3387 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-03-10 10:21:56 +08:00
Avery and GitHub
7bc34b8dd9
Feat: support def doc-gen <LocalFile.yaml> and corresponding functions ( #3368 )
...
* add doc-gen --local <LocalFile> and corresponding functions
Signed-off-by: Nicola115 <2225992901@qq.com >
* go format
Signed-off-by: Nicola115 <2225992901@qq.com >
* refactor the usage of vela def doc-gen from local file; refactor the function GenerateReferenceDoc
Signed-off-by: Nicola115 <2225992901@qq.com >
* gofmt and goimports
Signed-off-by: Nicola115 <2225992901@qq.com >
* update prompts info
Signed-off-by: Nicola115 <2225992901@qq.com >
* remove parseLocalDefinition struct, using ComponentDefinition instead
Signed-off-by: Nicola115 <2225992901@qq.com >
* standardize the function ParseLocalFile
Signed-off-by: Nicola115 <2225992901@qq.com >
* add unit test for ParseLocalFile
Signed-off-by: Nicola115 <2225992901@qq.com >
* remove redundant functions
Signed-off-by: Nicola115 <2225992901@qq.com >
* remove redundant lines and do goimports formatting
Signed-off-by: Nicola115 <2225992901@qq.com >
2022-03-08 16:58:39 +08:00
StevenLeiZhang and GitHub
b54ddf4c1c
Fix: The order of status displayed by vela ls is not correct ( #3302 )
...
Signed-off-by: StevenLeiZhang <zhangleiic@163.com >
2022-02-23 14:50:04 +08:00
wyike and GitHub
16414a0d9f
Feat: addon support version check ( #3304 )
...
* addon support version check
add more tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* add kubernetes tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* add more tests
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* reorgnize the check logic
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix addon error bug in apiserver
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
fix comments
fix test
* add err addon bcode
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix comments
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-02-23 12:17:31 +08:00
Somefive and GitHub
7059c8df79
Feat: rework cluster to align velaux and cli ( #3299 )
...
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2022-02-22 15:48:22 +08:00
1e022999a8
Refactor: refactor Helm chart with unnecessary 'systemDefinitionNames` value ( #3267 )
...
* refactor: refactor Helm chart with unnecessary 'systemDefinitionNamespace' value
* Revert "refactor: refactor Helm chart with unnecessary 'systemDefinitionNamespace' value"
This reverts commit 2ae764737f .
* Fix: Helm chart's 'Values.systemDefinitionNamespace' have default value of '.Release.Namespace' if unspecified.
* fix: fixed vela cli referenced '{{.Values.systemDefinitionNamespace}}'
Co-authored-by: yungcheng.tyc <yungcheng.tyc@alibaba-inc.com >
2022-02-18 14:05:38 +08:00
Kunshuai Zhu and GitHub
4bae08c2e2
Fix: Optimize error msg of addon enable/upgrade local path ( #3222 )
...
* Optimize error msg of addon enable/upgrade local path
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* Fix and add unit test
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* Run make reviewable to include all changes
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* remove test case for windows
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
* fix unit test.
Signed-off-by: zhukunshuai <jookunshuai@gmail.com >
2022-02-16 14:20:37 +08:00
barnettZQG and GitHub
4a29776e8e
Fix: registry don't have enough info to build a reader ( #3237 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-02-14 18:04:34 +08:00
Avery and GitHub
d145487b96
Add cli support for provider gcp and baidu. ( #3242 )
...
Signed-off-by: Nicola115 <2225992901@qq.com >
2022-02-14 16:40:18 +08:00
wyike and GitHub
7523576905
Feat: support complicated addon parameter ( #3232 )
...
* support complicated addon parameter
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
* fix: go mod tidy
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-02-14 14:02:16 +08:00
barnettZQG and GitHub
5ab9f0986e
Feat: remove the duplicate command ( #3228 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-02-14 10:35:31 +08:00
barnettZQG and GitHub
9fe9f98e30
Fix: apply crd error that the annotations too lang ( #3231 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-02-14 10:33:50 +08:00
barnettZQG and GitHub
fee4a3f2b8
Fix: the definition namespace is empty ( #3227 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-02-11 19:56:29 +08:00
barnettZQG and GitHub
fa1409f974
Fix: fix flag conflict ( #3211 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-02-09 15:17:04 +08:00
barnettZQG and GitHub
f6eea78ec8
Feat: support install and uninstall vela core ( #3181 )
...
* Feat: support install and uninstall vela core
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: support upgrade crd
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: support set reuse args
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
* Feat: apply CRD before install or upgrade
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-02-09 11:48:38 +08:00
Tianxin Dong and GitHub
614472b95a
Feat: support vela show for workflow step definition ( #3140 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-01-25 15:03:38 +08:00
wyike and GitHub
8d13c3c7bc
fix: vela addnon enable cannot support = ( #3156 )
...
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com >
2022-01-25 13:22:45 +08:00
Zheng Xi Zhou and GitHub
75dc45ced6
Fix: add providerRef in generated ComponentDefinition ( #3142 )
...
If the provider is not provider, append the providerRef section in
the generated ComponentDefinition
Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com >
2022-01-24 10:27:37 +08:00
Sunghoon Kang and GitHub
4ad8913bbd
Fix: prioritize namespace flag for vela up ( #3135 )
...
* Fix: prioritize namespace flag for `vela up`
Currently, CLI applies application to `default` namespace when there is
no explicit namespace in application spec, even if the namespace flag
is set.
This commit fixes issue by overriding the namespace if the namespace
flag is set.
Signed-off-by: Sunghoon Kang <hoon@linecorp.com >
* Test: add test cases for overriding namespaces
Signed-off-by: Sunghoon Kang <hoon@linecorp.com >
2022-01-21 10:22:25 +08:00