Commit Graph

2962 Commits

Author SHA1 Message Date
Xinzhao Xu
71b5daaed0 utils: remove the controller-runtime dependency (#5256) 2022-09-29 16:35:26 +08:00
Xinzhao Xu
ac3ecb5a96 Implement the helm executor package (#5245)
* Implement the helm executor package

* add createNamespace option and delete service account related logic
2022-09-29 14:25:24 +08:00
hongzhouzi
978bd5576e Fix cluster gateway logs and resource status display exception (#5248)
Cluster gateway logs and resource status display exception

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
2022-09-27 15:11:22 +08:00
hongming
e61bb80f2b Bump alpine to 3.16.2 (#5249) 2022-09-27 08:36:22 +08:00
hongming
ecf8bac31d update ks-core helm chart (#5247) 2022-09-27 08:28:22 +08:00
Xinzhao Xu
9e4f207c46 Add the helm executor common package (#5240) 2022-09-22 23:41:18 +08:00
hongzhouzi
73dcd0c48c fix gateway upgrade validate error. (#5232)
gateway upgrade validate error.

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
2022-09-21 15:30:17 +08:00
hongming
db867fa2ed invalid config file should not be ignored (#5228)
fix the invalid config file should not be ignored
2022-09-20 10:06:15 +08:00
Wenhao Zhou
6af86c2cf1 add dynamic options for cache (#4894)
* add dynamic options for cache

* fixed bugs based on unit-test

* add doc for cache

* make cache implements be private

* Change simpleCache name to InMemoryCache

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>

* Remove fake cache and replacing to in memory cache with default parameter

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>
2022-09-19 16:46:15 +08:00
junot
789a0ab1e4 fix rule status set (#5219)
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-09-16 18:43:48 +08:00
Wenhao Zhou
5ea9d3deac Fix: when placement is empty return error (#5213)
Co-authored-by: Wenhao Zhou <wenhaozhou@yunfiy.com>
2022-09-14 17:33:46 +08:00
Wenhao Zhou
95576bb827 Add authorization control for patching workspacetemplates (#5191)
* update patch workspacetemplate for supporting patch with JsonPatchType and change the authorization processing

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>

* make goimports

* Fix: Of the type is not string will lead to panic

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>

* Add jsonpatchutil for handling json patch data

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>

* Updated patch workspacetemplate to to make the code run more efficiently

* fix: multiple clusterrolebindings cannot autorizate

* Correct wrong spelling

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>
2022-09-08 10:23:41 +08:00
wanjunlei
3b5fae0013 support recording disable and enable users in auditing (#5154)
Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>

Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>
2022-09-07 18:13:40 +08:00
安逸的程序猿
b3b62e119d fix bug helm repo paging query (#5182)
* fix bug helmrepo paging query

* fix bug helmrepo paging query

* fix bug helm repo paging query

Co-authored-by: mayongxing <mayongxing@cmsr.chinamobile.com>
2022-09-07 18:06:41 +08:00
junot
d640c5324a alerting v2beta1 tunes (#5200)
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-09-07 17:04:41 +08:00
andrew_li
d3cf418c6e Fix: index out of range when merging two repo indexes (#5146) 2022-08-24 14:08:35 +08:00
hongming
6029034da7 chore: add feature-pluggable branch to kubespheredev image build ci jobs (#5165)
* Fix ks-core helm chart

* add feature-pluggable branch to dev image build ci jobs
2022-08-23 11:24:35 +08:00
Wenhao Zhou
08d181ddca Support for filtering workspace roles using labelSelector (#5161)
Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>
2022-08-22 16:40:00 +08:00
Xinzhao Xu
b7c815c148 Remove scheme duplicate registration code (#5147) 2022-08-22 11:19:00 +08:00
Hanamichi
644badf8c7 fill field status of helmrepo in response (#5152)
Signed-off-by: x893675 <x893675@icloud.com>

Signed-off-by: x893675 <x893675@icloud.com>
2022-08-22 11:11:00 +08:00
Hanamichi
b47736c500 fix cluster ready condition always true (#5130)
Signed-off-by: x893675 <x893675@icloud.com>

Signed-off-by: x893675 <x893675@icloud.com>
2022-08-14 22:24:38 +08:00
junot
b97a49b925 enhance globalrulegroups (#5134)
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-08-12 20:30:33 +08:00
Elon Cheng
f741bc7943 intergrate opensearch v1 (#5135)
opensearchv1

Signed-off-by: chengdehao <dehaocheng@kubesphere.io>

Signed-off-by: chengdehao <dehaocheng@kubesphere.io>
Co-authored-by: chengdehao <dehaocheng@kubesphere.io>
2022-08-12 19:58:33 +08:00
Xinzhao Xu
2a31867df1 Fix ingress P95 delay time promql statement (#5119) 2022-08-11 15:37:32 +08:00
Hao Wang
587dbe723b Fix the tiny typo in ks-openapi-spec (#5114)
There is tiny typo in Create Namespace API.
So fix it quickly.
2022-08-10 17:58:32 +08:00
junot
74e127e1a6 add alerting v2beta1 apis (#5115)
* generate alerting resource client

Signed-off-by: junot <junotxiang@kubesphere.io>

* add alerting v2beta1 apis

Signed-off-by: junot <junotxiang@kubesphere.io>

* tweak some varibles and descs

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-08-04 13:38:41 +08:00
ruijzhan
d87d7d2428 avoid re-allocating ServerRunOptions (#5108) 2022-08-01 12:04:56 +08:00
hongming
965dbb5ca7 Fix ks-core helm chart (#5101) 2022-07-27 18:31:53 +08:00
wanjunlei
1f2f6157d7 add apis for switch the notification language (#5088)
add apis for switch the notification lanaguae

Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>
2022-07-22 17:46:57 +08:00
Wenhao Zhou
bc23969bfa Add annotation to Makefile for deprecated deepcopy and clientset (#5082)
add annotation to Makefile for deprecated deepcopy and clientset

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>
2022-07-22 10:50:57 +08:00
junot
9bd15b7efc reconcile rulegroups to prometheusrules (#5081)
reconcile rulegroups

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-07-22 10:21:57 +08:00
失眠是真滴难受
111fc69ab1 ci: update go version to 1.18 (#5084)
* ci: update go version to 1.18

* feat: update Dockerfile go version
2022-07-21 18:56:52 +08:00
失眠是真滴难受
1b07470611 test: add anonymous unit test (#5072) 2022-07-21 10:36:52 +08:00
wanjunlei
a2059725dd support clean up the notification configure when delete cluster (#5077) 2022-07-20 19:27:51 +08:00
andrew_li
03da05dd91 skip generated code when fmt code (#5078) 2022-07-20 16:58:51 +08:00
andrew_li
77b1085eba golint with new commit (#5074) 2022-07-20 15:27:51 +08:00
tal66
0271840522 Adjust container terminal priority: bash, sh (#5075) 2022-07-20 15:17:51 +08:00
andrew_li
0726cf591f change default comment style of license header (#5069) 2022-07-19 10:49:49 +08:00
junot
23cec5886c add admission webhook for rulegroups (#5071)
Signed-off-by: junot <junotxiang@kubesphere.io>
2022-07-18 18:51:49 +08:00
hongming
521cb40c21 Upgrade go version to 1.18 (#5045)
* Upgrade go version to 1.18

* fix go 1.18 compatibility

* update gofmt

* ignore golangci-lint staticcheck

* update gofmt
2022-07-18 10:42:48 +08:00
junot
e529703c49 add rulegroup definitions for different scopes (#5064)
Signed-off-by: junot <junotxiang@kubesphere.io>
2022-07-18 09:45:12 +08:00
Elon Cheng
7a41af7c0c add opensearch test (#5050)
Signed-off-by: chengdehao <dehaocheng@kubesphere.io>

Co-authored-by: chengdehao <dehaocheng@kubesphere.io>
2022-07-11 23:31:42 +08:00
Elon Cheng
5e2f41f0b9 intergrate opensearch v2 (#5044)
intergrate opensearch

Signed-off-by: chengdehao <dehaocheng@kubesphere.io>

Co-authored-by: chengdehao <dehaocheng@kubesphere.io>
2022-07-10 15:14:38 +08:00
nio
9818aafa65 Delete Helm and Kustomize binaries in Dockerfile (#5041)
remove helm and kustomize binary file
2022-07-08 13:40:36 +08:00
hnajib
45a062593f [KS-OIDC] Remove special characters form sub OIDC standard claim (#5018)
* [KS-OIDC] Remove special characters form sub OIDC standard claim

* [KS-OIDC] Change to base64 RawURLEncoding

* [KS-OIDC] Import encoding/base64

* [KS-OIDC] Change import

* [KS-OIDC] Damn Go

* [KS-OIDC] Damn Spaces

* [KS-OIDC] Backport to test

* [KS-OIDC] Backport to test: the other way

* [KS-OIDC] Backport to test: convert to string

* [KS-OIDC] Backport to test: Hint from @wansir

* [KS-OIDC] Backport to test: Damn Space
2022-07-07 11:09:35 +08:00
andrew_li
641c73c010 golang-lint skips dir pkg/client (#5038)
goling skips dir pkg/client
2022-07-07 10:58:35 +08:00
Xinzhao Xu
09ecea52e7 Remove extra space in Makefile (#5035) 2022-07-06 18:07:34 +08:00
wanjunlei
5cead172cd update notification manager to v2.0 (#5030)
Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>
2022-07-05 16:04:33 +08:00
qiuming520
8e00ba29ca add some unit tests for pkg/api (#4994)
Signed-off-by: qiuming520 <qiuming_yewu@cmss.chinamobile.com>
2022-07-05 11:38:33 +08:00
意琦行
5d9aa0d5d1 close remote terminal.(#5023) (#5024)
close remote terminal.(kubesphere#5023)

Co-authored-by: lixueduan <li.xueduan@99cloud.net>
2022-07-04 14:00:32 +08:00