3250 Commits

Author SHA1 Message Date
hongming
75e05c59da Fix the registered controller name (#5407) 2022-12-09 15:40:35 +08:00
Xinzhao Xu
aab3ad8b87 controller/cluster: ensure cluster is Ready when cleanup notifications (#5392) 2022-12-06 17:06:58 +08:00
hongming
d739c693c1 Remove the broken test case (#5396) 2022-12-05 10:50:57 +08:00
hongzhouzi
0ca413cea3 Upgrade dependent version: go.mongodb.org/mongo-driver (#5320)
Upgrade dependent version: go.mongodb.org/mongo-driver v1.3.2 -> v1.10.4

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

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
2022-12-02 15:08:55 +08:00
Wenhao Zhou
493586d9a6 Add api /version and deprecated api /kapi/version (#5390)
add /version api and deprecated api /kapi/version

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

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>
2022-11-30 12:48:53 +08:00
dkeven
991e479932 Remove the VolumeSnapshot controller that creates a snapshot class automatically (#5380)
Signed-off-by: dkeven <dkvvven@gmail.com>

Signed-off-by: dkeven <dkvvven@gmail.com>
2022-11-24 17:47:48 +08:00
junot
e0cb0a889b fix rule status (#5381)
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-11-24 16:08:48 +08:00
hongzhouzi
d395976fc7 Upgrade dependent version: github.com/opencontainers/runc (#5316)
Upgrade dependent version: github.com/opencontainers/runc v0.1.1 -> v1.1.4

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

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
2022-11-21 17:44:45 +08:00
JohnJan
bd55ad516c Fix: remove unnecessary case in field selector (#5367)
Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com>

Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com>
2022-11-17 10:20:40 +08:00
hongzhouzi
44167aa47a Upgrade k8s package verison (#5358)
* upgrade k8s package version

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

* Script upgrade and code formatting.

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

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
2022-11-15 14:56:38 +08:00
pixiake
5f91c1663a Add GitHub action for release drafter 2022-11-11 11:35:59 +08:00
hzhhong
a8046eee00 Fix:Goroutine leaks when getting audit event sender times out (#5342)
* Fix:Goroutine leaks when getting audit event sender times out

* make it more readable
2022-11-11 10:50:35 +08:00
Bettygogo2021
1220d5c878 update k8s versions (#5351)
Signed-off-by: Bettygogo2021 <bettygogo@kubesphere.io>

Signed-off-by: Bettygogo2021 <bettygogo@kubesphere.io>
Co-authored-by: Bettygogo2021 <bettygogo@kubesphere.io>
2022-11-09 15:34:27 +08:00
junot
2b37422645 add label_matcher param to filter alerts (#5353)
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-11-08 11:15:26 +08:00
Elon Cheng
ea694684a0 Calculating the Number of Logs in opensearch (#5352)
Calculating the Number of Logs

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

Signed-off-by: chengdehao <dehaocheng@kubesphere.io>
Co-authored-by: chengdehao <dehaocheng@kubesphere.io>
2022-11-06 21:03:15 +08:00
junot
d487af7462 fix rulegroup typemeta miss (#5349)
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-11-04 18:40:59 +08:00
junot
846bfd9459 limit rule count per group (#5350)
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-11-04 18:34:00 +08:00
Bettygogo2021
ff59b80c28 update k8s versions (#5345)
Signed-off-by: Bettygogo2021 <bettygogo@kubesphere.io>

Signed-off-by: Bettygogo2021 <bettygogo@kubesphere.io>
Co-authored-by: Bettygogo2021 <bettygogo@kubesphere.io>
2022-11-02 10:22:57 +08:00
junot
b5cb6fef4e fix rulegroup state filter (#5340)
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-11-01 11:49:56 +08:00
hongzhouzi
c178670535 Upgrade dependent version: github.com/containerd/containerd (#5324)
Upgrade dependent version: github.com/containerd/containerd v1.3.0 -> v1.4.13

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

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
2022-11-01 10:36:57 +08:00
hongzhouzi
ef03b1e3df Upgrade dependent version: github.com/open-policy-agent/opa (#5315)
Upgrade dependent version: github.com/open-policy-agent/opa v0.18.0 -> v0.45.0

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

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
2022-10-31 10:58:55 +08:00
Bettygogo2021
668fca1773 3.3.1 CHANGELOG (#5337)
Signed-off-by: Bettygogo2021 <bettygogo@kubesphere.io>

Signed-off-by: Bettygogo2021 <bettygogo@kubesphere.io>
Co-authored-by: Bettygogo2021 <bettygogo@kubesphere.io>
2022-10-29 18:54:52 +08:00
Bettygogo2021
7c8e45185e update readme for cloud (#5335)
* update readme for cloud

Signed-off-by: Bettygogo2021 <bettygogo@kubesphere.io>

* update readme for cloud

Signed-off-by: Bettygogo2021 <bettygogo@kubesphere.io>

Signed-off-by: Bettygogo2021 <bettygogo@kubesphere.io>
Co-authored-by: Bettygogo2021 <bettygogo@kubesphere.io>
2022-10-29 18:48:52 +08:00
Wenhao Zhou
7e8edef01a Fix: globalrole has cluster management right can not manage cluster (#5331)
Fix: globalrole has permision of cluster management can not manage cluster
2022-10-27 14:09:50 +08:00
nuclearwu
89b1b6db87 support fieldselector filter query secrets (#5300)
* support fieldselector filter query secrets

Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com>

* support fieldselector filter query secrets

Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com>

* support fieldselector filter query secrets

Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com>

* support fieldselector filter query secrets

Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com>

* support fieldselector filter query secrets

Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com>

Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com>
2022-10-26 10:14:49 +08:00
junot
1e79901241 fix global alerts filter (#5311)
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-10-21 21:48:42 +08:00
Wenhao Zhou
77547147de Check cluster permission for create/update workspacetemplate (#5302)
* add cluster authorization for create/update workspacetemplate

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

add cluster authorization for create/update workspacetemplate

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

* add handle forbidden err

* add forbidden error log

* allow to use clusters of public visibility

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>
2022-10-20 18:47:41 +08:00
Leo Li
85df617175 optimize ks-core chart (#5305)
Signed-off-by: 24sama <jacksama@foxmail.com>

Signed-off-by: 24sama <jacksama@foxmail.com>
2022-10-20 18:16:40 +08:00
hongzhouzi
3800d738f9 Use controller-gen to generate deepcopy code replacing deepcopy-gen. (#5297)
Use controller-gen to generate deepcopy code, and replace the deepcopy-gen tags with the kubebuilder tags.

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

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
2022-10-20 17:37:40 +08:00
zhangpeng
7300405a26 Add switch for notification (#5283)
Signed-off-by: Gentleelephant <birdhk@kubesphere.io>

Signed-off-by: Gentleelephant <birdhk@kubesphere.io>
Co-authored-by: Gentleelephant <birdhk@kubesphere.io>
2022-10-20 17:09:40 +08:00
yuyu
41ac27ad31 Check the cluster ID (kube-system UID) when updating the cluster (#5299)
* Add an admission webhook to check cluster ID (kube-system UID) before updating

* Add an admission webhook to check cluster ID (kube-system UID) before updating
2022-10-20 10:37:40 +08:00
junot
a765914158 fix empty rules in rulegroup of prometheusrules (#5298)
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-10-18 18:02:38 +08:00
Eng Zer Jun
d1fec72a32 refactor: move from io/ioutil to io and os packages (#5266)
The io/ioutil package has been deprecated as of Go 1.16 [1]. This commit
replaces the existing io/ioutil functions with their new definitions in
io and os packages.

[1]: https://golang.org/doc/go1.16#ioutil
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-10-18 15:47:38 +08:00
wanjunlei
08b8069647 support route notifications to specified users (#5206)
Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>

Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>
2022-10-11 17:36:27 +08:00
junot
3810db2879 support scoped nodes and workloads for global rules (#5279)
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
2022-10-11 17:26:27 +08:00
chavacava
14aa059c63 fix #5267 by renaming yaml struct tag (#5268)
Signed-off-by: chavacava <salvadorcavadini+github@gmail.com>

Signed-off-by: chavacava <salvadorcavadini+github@gmail.com>
2022-10-08 14:21:57 +08:00
f10atin9
94ddcd9408 Dependency: update storageClass-accessor (#5271)
Dependency: update storageClass-accessor to v0.2.2, deleting storage source no longer requires validation now.

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

Signed-off-by: f10atin9 <f10atin9@kubesphere.io>
2022-10-08 14:14:57 +08:00
Wenhao Zhou
1b689341ab Fix: Can not resolve the resource scope correctly (#5263)
Fix: can not resolve the resource scope of clusters.cluster.kubesphere.io correctly

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

Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>
2022-10-08 10:20:56 +08:00
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