qiaozp
2947da2611
Fix: OSS read data race ( #2875 )
...
* Fix: read oss addon prefix bug
This bug is about list OSS bucket by prefix which will cause confusion between `terraform` and `terraform-alibaba`
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix data race
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix channel block
add test
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* reviewable
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2021-12-07 16:17:11 +08:00
wyike
99757814ab
Feat: algin addon cli and apiserver ( #2867 )
...
Feat: cli aligin with apiserver
Fix comments
Signed-off-by: wangyike <wangyike_wyk@163.com >
2021-12-07 15:11:52 +08:00
qiaozp
95c2b8ce04
Fix: query addon status api 500 because of secret ( #2866 )
...
* 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 >
2021-12-03 10:59:46 +08:00
qiaozp
a6ef0644ff
Feat: oss suppurt for addon ( #2848 )
...
* Add OSS source support for addon
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add unit test for pkg/addon
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* fix lint
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
* add license
Signed-off-by: qiaozp <chivalry.pp@gmail.com >
2021-12-01 19:15:48 +08:00
wyike
163415479b
Feat: list enabled addon from cluster interface and update addon ( #2832 )
...
make reviewable
lint
Feat: interface for update addon
nit import
fix comments
fix status args return
Signed-off-by: wangyike <wangyike_wyk@163.com >
2021-12-01 10:27:26 +08:00
wyike
6184b6e0e6
Feat: install helm addon schema ( #2815 )
...
Fix: fix bug
Fix: rebase bug
fix rebase -i master
rename func
2021-11-29 13:24:52 +08:00
qiaozp
b05deeca55
Feat: add addon invisible field ( #2820 )
...
* Feat: add addon invisible field
* reviewable
2021-11-27 13:06:45 +08:00
Zheng Xi Zhou
41f384e36b
Fix: addon name should not add prefix resources ( #2808 )
...
* Fix: addon name should not add prefix `resources`
- Adding prefix `resources will hit issues as:
'unable to parse requirement: invalid label value:
"resources-prometheus-server-register-grafana-datasource-5576f7f6b4":
at key: "controller.oam.dev/component": must be no more than 63 characters'
- This won't avoid the name confliction with other components
* address comments
2021-11-25 21:01:56 +08:00
qiaozp
b279df0451
Fix: add lock to avoid addon concurrency read error ( #2803 )
...
* make read func table driven
* add mutex
* fix
2021-11-25 11:50:29 +08:00
Zheng Xi Zhou
bbb1c1767e
Fix: remove .cue suffix from the component name of observability ( #2796 )
...
If the component name has a suffix `.cue`, it will hit issue of not
match a DNS name
2021-11-25 11:06:08 +08:00
Zheng Xi Zhou
216a95a2dd
Fix: the way to renderCUETemplate for terraform provider is wrong ( #2798 )
...
Fixed the probelm of renderring cue template for terraform provider
after #2788
2021-11-24 21:34:06 +08:00
Zheng Xi Zhou
14770dff0d
Fix: arguments map[string]string doesn't support observability's args ( #2790 )
...
* Fix: arguments map[string]string doesn't support observability's args
As there are bool typed arguments, the current arguments type doesn't
support.
2021-11-24 19:52:59 +08:00
Hongchao Deng
5c46aa2f7f
fix header
2021-11-22 19:07:13 +08:00
Hongchao Deng
cf4aaf51c8
fix imports
2021-11-22 18:47:47 +08:00
qiaozp
58293dcf20
Feat: check addon dependencies when enable ( #2741 )
2021-11-22 17:12:55 +08:00
wyike
4ad27e9bcd
Fix: ( #2761 )
...
1. load component in arrary, so apply them in order addon's needNamespace will be apply firstly
2. apply application in controle plane will be first workflowStep
3. bigger application reconcile timeout context get avoid of time out
2021-11-21 21:03:41 +08:00
qiaozp
1ea26865aa
Fix: lint apiserver code, fix panic ( #2755 )
...
* lint code
* fix error judge
try
* fix multicluster enable panic
* add err log
* fix can not get parameter
* debug
* try ci
* debug
* debug
* debug
* debugo
Co-authored-by: barnettZQG <576501057@qq.com >
2021-11-21 18:09:19 +08:00
barnettZQG
8181b4d266
Fix: fix the envbinding can not be deleted bug ( #2756 )
...
* Fix: fix the envbinding can not be deleted bug
* Fix: fix target must be interface or implement error
Co-authored-by: barnettZQG <yiyun.pro>
2021-11-21 10:15:15 +08:00
qiaozp
54eb662959
Feat: add definitions to addon detail API, fix addon cache, async download files ( #2738 )
...
* add definition to addon detail API
* change little
* tmp
* fix cache
* fix import
2021-11-20 12:24:35 +08:00
Somefive
1a2c964dac
Fix: enhance cluster api ( #2742 )
2021-11-19 15:39:54 +08:00
Hongchao Deng
b6a14e435b
Feat: EnableAddon supports runtime cluster ( #2739 )
...
* Feat: EnableAddon supports runtime cluster
If use runtime cluster mode, the definitions will be applied to control plane k8s directly, not included in the Application object.
* add owner
* comment
2021-11-18 17:32:14 +08:00
qiaozp
bade23cecf
Feat: add addon arguments API ( #2732 )
...
* temp
* test
* move to status
2021-11-18 12:24:01 +08:00
barnettZQG
ba1f8e4793
Feat: change the model to support multiple environments ( #2721 )
...
* Feat: change swagger config
* Feat: change the model to support multiple environments.
* Feat: support query targets by namespace
* Fix: fix definition unit test case
Co-authored-by: barnettZQG <yiyun.pro>
2021-11-16 14:45:49 +08:00
qiaozp
1c7e0c054d
Fix: add detail cache, fix uiSchema ( #2716 )
...
* add detail cache, fix uischema
* remove
2021-11-15 17:17:07 +08:00
qiaozp
27490c4bce
Refactor: refactor addon for later reusing code in CLI ( #2708 )
...
* refactor addon for later reuse code in CLI
* fix import
2021-11-15 12:16:32 +08:00