66 Commits

Author SHA1 Message Date
Yunkang Ren
5ccf0bddc7 fix: only delete conditions of core (#6506)
Signed-off-by: renyunkang <rykren1998@gmail.com>
2025-05-12 17:43:08 +08:00
yuefanxiao
714daa643e fix: Use BearerTokenFile instead of BearerToken in BuildKubeconfigFro… (#6499)
fix: Use BearerTokenFile instead of BearerToken in BuildKubeconfigFromRestConfig

Signed-off-by: yuefanxiao <591649725@qq.com>
2025-05-06 11:31:58 +08:00
hongming
0d852e8276 chore: update copyright headers (#6496)
Signed-off-by: hongming <coder.scala@gmail.com>
2025-04-30 15:53:51 +08:00
Yunkang Ren
5e700d4693 feat: move ks-core agent installer to job (#6473)
Signed-off-by: renyunkang <rykren1998@gmail.com>
2025-04-07 10:27:19 +08:00
hongming
c438adedeb security: restrict anonymous access to the /kapis/version endpoint (#2107)
Signed-off-by: hongming <coder.scala@gmail.com>
2025-03-19 06:26:25 +00:00
smartcat999
7e2cafd15b update ks-core helm chart (#6401)
fix: cherrypick update ks-core helm chart

Signed-off-by: peng wu <2030047311@qq.com>
2025-03-11 09:57:48 +08:00
hongming
cfebd96a1f update dependencies (#6267)
Signed-off-by: hongming <coder.scala@gmail.com>
2024-11-06 10:27:06 +08:00
KubeSphere CI Bot
447a51f08b feat: kubesphere 4.0 (#6115)
* feat: kubesphere 4.0

Signed-off-by: ci-bot <ci-bot@kubesphere.io>

* feat: kubesphere 4.0

Signed-off-by: ci-bot <ci-bot@kubesphere.io>

---------

Signed-off-by: ci-bot <ci-bot@kubesphere.io>
Co-authored-by: ks-ci-bot <ks-ci-bot@example.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-09-06 11:05:52 +08:00
Xinzhao Xu
580b4196ff Fix webhook validation issue for new clusters (#5802) 2023-07-03 15:34:48 +08:00
Xinzhao Xu
16c2dbc693 controller/cluster: improve the process for updating the cluster certificate's expiration date (#5665) 2023-05-08 17:47:44 +08:00
Xinzhao Xu
2c23f7c24c controller/cluster: retry when updating the KubeFedCluster conflicted (#5653) 2023-04-25 16:03:27 +08:00
Xinzhao Xu
708de806f8 Use the generic Set to replace deprecated methods (#5623) 2023-04-07 11:15:35 +08:00
Xinzhao Xu
aab3ad8b87 controller/cluster: ensure cluster is Ready when cleanup notifications (#5392) 2022-12-06 17:06:58 +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
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
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
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
wanjunlei
a2059725dd support clean up the notification configure when delete cluster (#5077) 2022-07-20 19:27:51 +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
KubeSphere CI Bot
ac36ff5752 Merge pull request #4940 from xyz-li/sa_token
create default token for service account
2022-06-09 11:32:40 +08:00
LiHui
098b77fb4c add key to queue 2022-06-09 11:13:56 +08:00
LiHui
e97f27e580 create sa token 2022-06-09 10:28:55 +08:00
Xinzhao Xu
5e02f1b86b Promptly handle the cluster when it is deleted 2022-06-06 11:31:14 +08:00
hongming
382be8b16b fix: cluster list granted to users is incorrect 2022-05-23 17:06:19 +08:00
hongming
c434971140 Sync cluster status periodically 2022-05-16 16:00:54 +08:00
hongming
825a38f948 Reduce unnecessary status updates 2022-05-16 10:43:27 +08:00
Xinzhao Xu
1e760b0069 Cleanup cluster controller and remove unused code 2022-03-09 10:52:33 +08:00
Xinzhao Xu
7ae117cbbd Update the clusterName field when the kubesphere-config configmap is updated 2022-03-01 16:22:02 +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
Xinzhao Xu
d3ed81059f Use the kube-system UID to identify if the member cluster already exists 2022-02-16 11:09:52 +08:00
Xinzhao Xu
7bbefdd30c Sync the expiration time of kubeconfig cert file of the cluster 2022-01-06 12:33:05 +08:00
songf0011
e86c5dea96 fix: fix spell mistake: hostClusterNmae -> hostClusterName 2021-12-26 00:00:46 +08:00
yuswift
8da8c5deb1 support setting host cluster name
Signed-off-by: yuswift <yuswift2018@gmail.com>
2021-09-05 23:26:37 +08:00
Roland.Ma
2fcfb81066 fix controller Start method signature
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-08-16 06:58:12 +00:00
Roland.Ma
c37a11c5f9 move api to staging
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-04-29 08:20:05 +00:00
Sherlock113
cdcd42a6a3 Update host cluster desc
Signed-off-by: Sherlock113 <sherlockxu@yunify.com>
2021-04-14 17:46:29 +08:00
yuswift
3b00fc6d5e add kubesphereversion field for cluser.status
Signed-off-by: yuswift <yuswiftli@yunify.com>

adopt reviews from @LinuxSuRen
2021-04-07 15:12:15 +08:00
yuswift
b34c9fb9f5 upgrade kubefed to v0.7.0
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-03-31 18:12:10 +08:00
zryfish
ac275b6e98 add goimports format action (#3630)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2021-03-30 13:44:24 +08:00
yuswift
ce3b5a026a fix 502 error when joining the same cluster with a different name
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-03-25 22:08:08 +08:00
LiHui
83e6221f3a openpitrix crd
Signed-off-by: LiHui <andrewli@yunify.com>

delete helm repo, release and app

Signed-off-by: LiHui <andrewli@yunify.com>

Fix Dockerfile

Signed-off-by: LiHui <andrewli@yunify.com>

add unit test for category controller

Signed-off-by: LiHui <andrewli@yunify.com>

resource api

Signed-off-by: LiHui <andrewli@yunify.com>

miscellaneous

Signed-off-by: LiHui <andrewli@yunify.com>

resource api

Signed-off-by: LiHui <andrewli@yunify.com>

add s3 repo indx

Signed-off-by: LiHui <andrewli@yunify.com>

attachment api

Signed-off-by: LiHui <andrewli@yunify.com>

repo controller test

Signed-off-by: LiHui <andrewli@yunify.com>

application controller test

Signed-off-by: LiHui <andrewli@yunify.com>

release metric

Signed-off-by: LiHui <andrewli@yunify.com>

helm release controller test

Signed-off-by: LiHui <andrewli@yunify.com>

move constants to /pkg/apis/application

Signed-off-by: LiHui <andrewli@yunify.com>

remove unused code

Signed-off-by: LiHui <andrewli@yunify.com>

add license header

Signed-off-by: LiHui <andrewli@yunify.com>

Fix bugs

Signed-off-by: LiHui <andrewli@yunify.com>

cluster cluent

Signed-off-by: LiHui <andrewli@yunify.com>

format code

Signed-off-by: LiHui <andrewli@yunify.com>

move workspace,cluster from spec to labels

Signed-off-by: LiHui <andrewli@yunify.com>

add license header

Signed-off-by: LiHui <andrewli@yunify.com>

openpitrix test

Signed-off-by: LiHui <andrewli@yunify.com>

add worksapce labels for app in appstore

Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-09 18:30:02 +08:00
yuswift
194d054973 refactor cluster controller
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-02-24 10:12:42 +08:00
KubeSphere CI Bot
e6365c62d5 Merge pull request #3214 from yuswift/feature/support_configurable_cluster_resync_perioud
Configurable cluster resync perioud
2021-01-25 14:04:42 +08:00
yuswift
9e0a4b69e8 support configurable cluster resync perioud
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-01-22 18:06:13 +08:00
Zack Zhang
f20c1f33f1 refactor application controller
Signed-off-by: zackzhang <zackzhang@yunify.com>
2021-01-04 16:34:04 +08:00
hongming
fe6c5de00f update dependencies
Signed-off-by: hongming <talonwan@yunify.com>
2021-01-04 15:35:32 +08:00
KubeSphere CI Bot
51c853c886 Merge pull request #3203 from yuswift/bugfix/proxy-cluster-status-sync
[BugFix] Fix cluster unjoin federation plane when using proxy connection
2020-12-28 13:55:52 +08:00
Roland.Ma
84f5fb7e69 valid member cluster's workspaces when joining
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-12-25 03:16:03 +00:00
yuswift
ee13aa7c8a fix #3202
Signed-off-by: yuswift <yuswiftli@yunify.com>
2020-12-14 15:30:48 +08:00
linruichao
98ae80207f fixed: check the cluster has initialized
Previously, always check whether the cluster has been initialized, but the updateClusterCondition function always removes the old condition and then adds the new condition, resulting in always returning after updating the initialized condition.

This commit check the cluster has initialized, if initialized will not updated condition

Signed-off-by: linruichao <linruichao@ruijie.com.cn>
2020-12-14 15:02:30 +08:00