Wenhao Zhou
7e4ba8215f
Update version root path ( #5542 )
...
update version root path
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com >
2023-02-20 19:08:28 +08:00
hongming
f0221dbed9
Use golang-jwt/jwt instead of form3tech-oss/jwt-go ( #5532 )
2023-02-20 12:18:28 +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
smartcat999
1e2a8c1699
fix: ks-apiserver panic error: ServiceAccount's Secret index out of r… ( #5428 )
...
fix: ks-apiserver panic error: ServiceAccount's Secret index out of range
2022-12-26 10:08:58 +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
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
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
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
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
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
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
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
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
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
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
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
wanjunlei
5cead172cd
update notification manager to v2.0 ( #5030 )
...
Signed-off-by: wanjunlei <wanjunlei@kubesphere.io >
2022-07-05 16:04:33 +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
andrew_li
f1e06466df
format error log ( #4953 )
...
format log
2022-06-27 17:28:35 +08:00
KubeSphere CI Bot
bc00b67a6e
Merge pull request #4938 from qingwave/typo-fix
...
fix some typos
2022-06-08 10:25:00 +08:00
KubeSphere CI Bot
108963f87b
Merge pull request #4941 from SinTod/master
...
Unified call WriteEntity func
2022-06-08 10:20:59 +08:00
SinTod
26b871ecf4
Unified call WriteEntity func
2022-06-06 15:30:11 +08:00
qingwave
c78ab9039a
fix some typos
2022-06-06 02:43:23 +00:00
zhanghaiwen
02e99365c7
add unit test for GetServiceTracing
2022-06-02 14:46:27 +08:00
qingwave
107e2ec64c
fix: avoid gateway pod log connection leak
2022-06-01 02:14:19 +00:00
KubeSphere CI Bot
2758e35a4e
Merge pull request #4881 from suwliang3/master
...
feature:test functions in package resources/v1alpha3 by building restful's re…
2022-05-29 23:23:40 +08:00
suwanliang
b2be653639
run make fmt and make goimports
2022-05-24 18:37:16 +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
suwanliang
530b358c94
test functions in package resources/v1alpha3 by building restful's res and res
2022-05-16 18:27:06 +08:00
Xinzhao Xu
26576cc665
Add get workspace API
2022-05-16 16:14:33 +08:00
hongming
f304ecdd01
Fix: deny the blocked user request
2022-05-12 12:17:41 +08:00
chengdehao
75803113f6
fix nil pointer
...
Signed-off-by: chengdehao <dehaocheng@yunify.com >
2022-05-10 23:36:50 +08:00
Xinzhao Xu
146cff34a1
Check if the cluster is the same when updating kubeconfig
2022-03-17 16:59:49 +08:00
Xinzhao Xu
6a3e1ac099
Refactor workspace API and introduced tenant v1alpha3 version
2022-03-09 14:12:08 +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
19048d52dc
Merge pull request #4679 from iawia002/cluster-name
...
Set the name of the current cluster into the kubesphere-config configmap
2022-03-07 13:22:11 +08:00
KubeSphere CI Bot
e97a66ba5e
Merge pull request #4686 from JohnNiang/feat/proxy-devops-v1alpha-apis
...
Proxy DevOps APIs with group name and version
2022-03-07 13:21:45 +08:00
johnniang
0e9d30ffe4
Add gitops.kubesphere.io group proxy
2022-02-28 11:06:20 +08:00
johnniang
291d35cf93
Refactor DevOps API proxy
...
Signed-off-by: johnniang <johnniang@fastmail.com >
2022-02-24 17:31:55 +08:00
Xinzhao Xu
e966a1da6f
Set the name of the current cluster into the kubesphere-config configmap
2022-02-24 11:51:23 +08:00
KubeSphere CI Bot
8bbccabb97
Merge pull request #4659 from x893675/master
...
feat: live-reload when configuration changed
2022-02-24 11:01:41 +08:00
johnniang
35cf45a0b7
Fix verification error and failing tests
...
Signed-off-by: johnniang <johnniang@fastmail.com >
2022-02-23 17:04:11 +08:00
johnniang
ef1d0fdf1d
Proxy DevOps APIs with version v1alpha1
...
Signed-off-by: johnniang <johnniang@fastmail.com >
2022-02-23 16:03:16 +08:00