827 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
安逸的程序猿
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
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
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
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
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
wanjunlei
a2059725dd support clean up the notification configure when delete cluster (#5077) 2022-07-20 19:27:51 +08:00
tal66
0271840522 Adjust container terminal priority: bash, sh (#5075) 2022-07-20 15:17:51 +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
wanjunlei
5cead172cd update notification manager to v2.0 (#5030)
Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>
2022-07-05 16:04: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
andrew_li
f289795312 Add golangci-lint workflow (#4999)
* fix lint workflow

* add golang lint

* close http response body
2022-06-29 11:58:36 +08:00
qingwave
c78ab9039a fix some typos 2022-06-06 02:43:23 +00:00
LiHui
77e0373777 fix gen key type 2022-06-02 11:19:45 +08:00
KubeSphere CI Bot
305da3c0c5 Merge pull request #4918 from anhoder/master
fix:goroutine leak when open terminal
2022-05-29 23:18:51 +08:00
anhoder
d0933055cb fix:goroutine leak when open terminal 2022-05-27 18:25:43 +08:00
ONE7live
4247387144 add some unit test for models
Signed-off-by: ONE7live <wangqi_yewu@cmss.chinamobile.com>
2022-05-27 16:10:01 +08:00
LiHui
73852a8a4b add workspace to review list 2022-05-25 11:58:21 +08:00
hongming
382be8b16b fix: cluster list granted to users is incorrect 2022-05-23 17:06:19 +08:00
LiHui
35027a346b add openpitrix Client to apiserver 2022-05-20 17:37:52 +08:00
LiHui
32b85cd625 cluster clusters 2022-05-20 11:53:51 +08:00
Xinzhao Xu
26576cc665 Add get workspace API 2022-05-16 16:14:33 +08:00
hongzhouzi
dd836fc652 fix:modify the default resource reservation of gateway system, gateway.go typo 2022-05-11 10:50:33 +08:00
hongming
0a44c30a46 Fix disabled status not work for OAuth 2022-05-09 17:11:04 +08:00
Pilipalaca
e90efe1c34 fix: fix the gateway variable name.
Signed-off-by: Pilipalaca <85749695@qq.com>
2022-04-21 17:13:05 +08:00
KubeSphere CI Bot
9bdb986f4b Merge pull request #4721 from iawia002/workspace-api
Refactor workspace API and introduced tenant v1alpha3 version
2022-03-15 12:07:47 +08:00
f10atin9
d871f0e6ee Test: update ListVolumeSnapshotClassTest
Signed-off-by: f10atin9 <f10atin9@kubesphere.io>
2022-03-09 14:59:55 +08:00
Xinzhao Xu
6a3e1ac099 Refactor workspace API and introduced tenant v1alpha3 version 2022-03-09 14:12:08 +08:00
f10atin9
d224df444c Fix: Modified the function to get the list of snapshots in countVolumeSnapshots.
Signed-off-by: f10atin9 <f10atin9@kubesphere.io>
2022-03-09 14:07:39 +08:00
f10atin9
902997b207 Fix: add deepcopy
Signed-off-by: f10atin9 <f10atin9@kubesphere.io>
2022-03-09 11:14:26 +08:00
f10atin9
2e34bdf9a2 Add "snapshot-count" annotation for volumesnapshotClass
Signed-off-by: f10atin9 <f10atin9@kubesphere.io>
2022-03-09 10:30:47 +08:00
mango
f018a23023 chore: add licenses check tools (#4706)
* feat: check licenses header with skywalking-eye and support check tools.

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* feat: check licenses header with skywalking-eye and support check tools.

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* feat: check licenses header with skywalking-eye and support check tools.

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* remove verify-licenses because verify-all exist.

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* update modules.txt

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* revert go.mod

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* update vendor directory.

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* revert go.sum

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* revert go.sum

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* ignore `pkg/controller/application/status.go`

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* add license header.

Signed-off-by: mango <xu.weiKyrie@foxmail.com>
2022-03-09 10:25:13 +08:00
KubeSphere CI Bot
a76ba958cb Merge pull request #4701 from f10atin9/snapshot
Add "readyToUse" filter field for volumesnapshotcontent
2022-03-09 10:24:12 +08:00
KubeSphere CI Bot
d6424eee67 Merge pull request #4695 from wansir/fix-4442
Fix cannot change user status to disabled
2022-03-09 10:22:13 +08:00
junot
b205529bd6 add container processes/threads metrics
Signed-off-by: junot <junotxiang@kubesphere.io>
2022-03-07 11:09:29 +08:00
KubeSphere CI Bot
2e596d5340 Merge pull request #4705 from junotx/device-monitor
add node device usage metrics
2022-03-04 14:52:44 +08:00
f10atin9
ca39efe137 Add "readyToUse" filter field to volumesnapshotcontent
Signed-off-by: f10atin9 <f10atin9@kubesphere.io>
2022-03-02 18:02:57 +08:00
junot
15e7f36e61 add node device usage metrics
Signed-off-by: junot <junotxiang@kubesphere.io>
2022-03-02 17:41:30 +08:00