Wenhao Zhou
53d4900816
Add write operation for dynamic resource ( #5601 )
...
add write operation for dynamic resource
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
2023-05-12 11:33:48 +08:00
AS!
e140fb387c
Fix wrong params naming in openpitrix ( #5666 )
2023-05-09 13:54:45 +08:00
hongming
673fdde52c
Bump github.com/emicklei/go-restful-openapi to v2.9.2-0.20230507070325-d6acc08e570c ( #5669 )
2023-05-09 10:13:45 +08:00
Wenhao Zhou
62427cda32
Move struct DynamicOptions to package pkg/server ( #5625 )
...
* move struct DynamicOptions to package pkg/server/dynamic_options.go
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* update test types
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
---------
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
2023-04-07 11:33:36 +08:00
Xinzhao Xu
708de806f8
Use the generic Set to replace deprecated methods ( #5623 )
2023-04-07 11:15:35 +08:00
chuan-you
19909f731a
Update utils.go ( #5615 )
...
* Update utils.go
All build alerting is not working
* Update utils.go
2023-04-07 10:38:34 +08:00
hongzhouzi
ffc1aea306
fix:Return cluster gateway duplicates ( #5582 )
...
fix:Return cluster gateway duplicates.
Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io >
2023-03-17 15:14:53 +08:00
hongming
00b0229f77
Fix dynamic resource API ( #5573 )
2023-03-08 19:10:44 +08:00
hongming
f7d0addf9e
Use batch/v1 instead of batch/v1beta1 ( #5562 )
2023-03-03 10:37:38 +08:00
Wenhao Zhou
dc28a0917a
Add api for identity provider login ( #5534 )
...
* add api for ldap login
* update ldap login to identity provider login for more flexible login type
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* update PasswordAuthenticate
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* add test case
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* update api path
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* make goimports and add annotations
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* update func names & add annotations
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
---------
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
2023-02-27 18:35:35 +08:00
Wenhao Zhou
a8ac54f489
Fix: Get nothing when the filter is empty ( #5555 )
...
Fix: Unable list object without filters
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
2023-02-27 15:28:35 +08:00
Sekfung Lau
dbdf006fb5
fix: can not re-upgrade helm application in a failed state ( #5543 )
2023-02-21 14:42:28 +08:00
Wenhao Zhou
b143b41e3c
Fix cannot get registered resource ( #5515 )
...
* Fix can`t get registered resource
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* update v1beta1 interface Get func`s parameters
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
---------
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
2023-02-15 10:50:23 +08:00
junot
2cd5f45d47
update prometheus dependencies ( #5520 )
...
Signed-off-by: junot <junotxiang@kubesphere.io >
2023-02-14 09:46:22 +08:00
Wenhao Zhou
23df7b051b
ResourceGetter v1beta1 ( #5416 )
...
* add resource getter & reader
Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com >
* add resource v1beta1 handler
* delete gvrToGvk map instead of using the dynamicRESTMapper for getting gvk, and rename the ResourceLister to ResourceGetter
* add unregisteredMiddleware filter
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* add secret contains benchmark & add fieldSelector to resourcev1beta1
Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com >
* delete crds models
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* delete parameterExtractor and instead of requestInfo
Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com >
* add benchmark test
* move fieldSelector to DefaultObjectMetaFilter
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* move fieldSelector to DefaultObjectMetaFilter
* change registeredGv type to set
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* update filter chains
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* fix fieldSelector cannot work
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
* fix: list known type do not need served label
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
---------
Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com >
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
2023-02-08 15:00:15 +08:00
hongming
1c49fcd57e
Bump sigs.k8s.io/controller-runtime to v0.14.4 ( #5507 )
...
* Bump sigs.k8s.io/controller-runtime to v0.14.4
* Update gofmt
2023-02-08 14:06:15 +08:00
hongming
129e6fbec3
chore: Generating CRDs supports multiple versions ( #5497 )
...
Generating CRDs supports multiple versions
2023-01-31 15:23:12 +08:00
Xiao Liu
2972cb97e9
fix the issue that the upload app template did not display icons ( #5467 )
...
* fix appstore app home field
* fix the issue that the upload app template did not display icons
2023-01-29 10:11:43 +08:00
Junhao Zhang
fe38b7310f
adjust Pod status filter ( #5483 )
...
Signed-off-by: frezes <zhangjunhao@kubesphere.io >
Signed-off-by: frezes <zhangjunhao@kubesphere.io >
2023-01-17 11:34:45 +08:00
Xiao Liu
4991d88d68
fix Home field fault in appstore application ( #5425 )
...
fix appstore app home field
2022-12-21 10:56:53 +08:00
hongzhouzi
efcd4c5512
fix: Resolved some data out of sync after live-reload. ( #5422 )
...
refactor: Data not synchronized due to using singleton mode after live-reload.
Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io >
Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io >
2022-12-21 10:49:53 +08:00
hongming
d739c693c1
Remove the broken test case ( #5396 )
2022-12-05 10:50:57 +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
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
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
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