Commit Graph

59 Commits

Author SHA1 Message Date
Zhiwei Yin
84eaf5b3b8 refactor certrotation with sdk-go (#526)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-06-24 07:19:27 +00:00
Zhiwei Yin
12baec945a fix the label cannot be number (#531)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-06-19 07:04:12 +00:00
Zhiwei Yin
287a6fbd26 fix issue that pull secret and ns are synced labels when enable-sync-labels is disabled (#511)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-06-13 02:00:18 +00:00
Zhiwei Yin
c4b2c65080 add enable-sync-labels flag to klusterlet operator (#505)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-06-06 15:03:12 +00:00
Jian Zhu
00c39e2712 🐛 Refresh external managed token secret if service account is deleted (#504)
* Refresh external managed token secret if service account is deleted

Signed-off-by: zhujian <jiazhu@redhat.com>

* Debug e2e

Signed-off-by: zhujian <jiazhu@redhat.com>

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2024-06-06 13:17:23 +00:00
xuezhao
0357cb99e1 Registration-agent supports multiple bootstrapkubeconfigs and switch-hub. (#443)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-06-04 13:46:39 +00:00
Zhiwei Yin
7fd733082f sync labels from klusterlet to all agent resources (#475)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-06-04 06:49:49 +00:00
Jian Qiu
c056181096 Add a disable-default-addon-namespace flag (#484)
* Add a disable-default-addon-namespace flag

if the flag is set, default addon ns will not be created
by the operator.

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Update with comments

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-06-03 06:54:15 +00:00
DONG BEIQING
22da639109 configurable controller replicas and master node selector (#468)
* configurable controller replicas and master node selector

Signed-off-by: Dong Beiqing <350758787@qq.com>

* run make fmt-imports

Signed-off-by: Dong Beiqing <350758787@qq.com>

* shorter lines

Signed-off-by: Dong Beiqing <350758787@qq.com>

* rename ControllerReplicas to DeploymentReplicas

Signed-off-by: Dong Beiqing <350758787@qq.com>

* rename masterNodeLabelSelectors to controlPlaneNodeLabels

Signed-off-by: Dong Beiqing <350758787@qq.com>

* rename controlPlaneNodeLabels to controlPlaneNodeLabelSelector

Signed-off-by: Dong Beiqing <350758787@qq.com>

---------

Signed-off-by: Dong Beiqing <350758787@qq.com>
2024-05-21 10:30:38 +00:00
Zhiwei Yin
319d9af8a1 igonre failed to get pullsecret error (#463)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-05-15 06:53:26 +00:00
Jian Zhu
5313ff714e Refresh external managed token secret if service account ns changes (#458)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-05-14 07:11:37 +00:00
Jian Qiu
a31ee084a7 Always create default addon namespace (#457)
The addon namespace should always be default on.
The operator will not create addon ns based
on klusterlet install namespace.

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-05-14 07:08:53 +00:00
Yang Le
4e2918120c 🌱 honor the settings of AppliedManifestWorkEvictionGracePeriod in Klusterlet API (#454)
Signed-off-by: Yang Le <yangle@redhat.com>
2024-05-13 08:36:53 +00:00
Zhiwei Yin
e4202ddadb failed sync image stop other reconciler (#456)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-05-13 07:22:37 +00:00
Jian Qiu
5fc1dbdce7 🐛 Remove old ns when klusterlet ns is changed (#442)
* Remove old ns when klusterlet ns is changed

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Resolve comments

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-05-06 03:15:48 +00:00
Zhiwei Yin
2636009a52 Add image pullSecret to hub controllers (#397)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-04-28 07:18:14 +00:00
Morven Cao
7154863106 support work driver config for cluster manager. (#381)
* support work driver config for cluster manager.

Signed-off-by: morvencao <lcao@redhat.com>

* address comments.

Signed-off-by: morvencao <lcao@redhat.com>

---------

Signed-off-by: morvencao <lcao@redhat.com>
2024-04-24 08:33:13 +00:00
Zhiwei Yin
f413220b56 refactor constants in operator (#421)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-04-15 04:59:31 +00:00
Yang Le
c5e210af0c support configuration of the agent priorityclass (#358)
Signed-off-by: Yang Le <yangle@redhat.com>
2024-02-08 06:23:23 +00:00
DONG BEIQING
5b9b566f15 Configurable qos resources for containers managed by cluster-manager and klusterlet (#351)
* configurable qos resources for containers managed by cluster-manager and klusterlet

Signed-off-by: Dong Beiqing <350758787@qq.com>

* run make fmt-imports

Signed-off-by: Dong Beiqing <350758787@qq.com>

---------

Signed-off-by: Dong Beiqing <350758787@qq.com>
2024-01-23 09:41:52 +00:00
Jian Qiu
6cfce8ce24 Revert apply func (#353)
this part dep on library-go so remove from
sdk-go

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-01-22 03:46:46 +00:00
Jian Qiu
bede3edd92 Switch to patcher in sdk-go (#349)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-01-22 02:04:49 +00:00
Zhiwei Yin
8bd99799e4 configure QPS and Burst for the flags of klusterlet agents (#344)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-01-18 01:35:58 +00:00
xuezhaojun
4b6e12a2f1 Fix: using ownerRef to control the removal of storageversionmigrations. (#342)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-01-10 02:47:08 +00:00
Jian Qiu
976019dd43 🐛 Requeue for rolling strategy in mwrs (#337)
* Requeue for rolling strategy in mwrs

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Add more integration test for rolling

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-01-04 09:55:20 +00:00
xuezhaojun
93a9d194af Fix: migration-controller depending on cluster-manager condition. (#328)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2023-12-19 10:28:59 +00:00
Wei Liu
d2324b8581 supporting cloudevents for work agent (#321)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2023-12-07 05:16:59 +00:00
Jian Qiu
7ceb9a2bce Reduce permission for cluster manager and klusterlet (#325)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-11-30 13:05:39 +00:00
haowells
8a4c834ebf klusterlet cr add flag to use best effort resources (#317)
* klusterlet cr add flag to use besteffort resources

Signed-off-by: haolin <haowells@gmail.com>

* rename resource type to resource requirements

Signed-off-by: haolin <haowells@gmail.com>

* update api to latest version

Signed-off-by: haolin <haowells@gmail.com>

* fix typo of ResourceRequirements

Signed-off-by: haolin <haowells@gmail.com>

---------

Signed-off-by: haolin <haowells@gmail.com>
Co-authored-by: haolin <haolin@ebay.com>
2023-11-27 09:49:44 +00:00
xuezhaojun
a46086d819 Removal v1beta1 webhook. (#316)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2023-11-23 08:06:19 +00:00
Yang Le
9aaa1327fa 🐛 move the rebootstrap logic to registration agent (#267)
Signed-off-by: Yang Le <yangle@redhat.com>
2023-10-18 09:58:06 +00:00
Jian Zhu
75db27dd61 set work agent status-sync-interval when the replica is 1 (#282)
Signed-off-by: zhujian <jiazhu@redhat.com>
2023-09-24 22:21:37 -04:00
Zhiwei Yin
769272cbec fix failed update roleRef in clusterrolebinding in upgrade case (#284)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2023-09-20 23:16:06 -04:00
Jian Qiu
bd4982fffc Fix: change singleton agent sa to work sa (#279)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-09-15 10:01:14 +02:00
Jian Zhu
fda6514ba6 delete klusterlet if the managed cluster refused the connection (#278)
Signed-off-by: zhujian <jiazhu@redhat.com>
2023-09-14 05:05:34 +02:00
Jian Zhu
e0d1ad384c bump golangci-lint to v1.54.2 (#270)
Signed-off-by: zhujian <jiazhu@redhat.com>
2023-09-07 15:55:12 +02:00
Jian Qiu
404680d302 support singleton in hosted mode (#258)
* delete old agent when switch to singleton mode

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* run singleton hosted mode

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Sync sa on spoke as external-agent-kubeconfig

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-09-07 03:33:17 +02:00
Yang Le
7adf6ee1bc 🐛 correct the agent deployment name in different install mode (#265)
Signed-off-by: Yang Le <yangle@redhat.com>
2023-09-05 05:34:36 +02:00
Jian Qiu
e297899a3c Remove old agent when upgrade to singleton (#263)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-09-04 11:07:38 +02:00
Yang Le
ac142e6478 support proxy between hub cluster and managed cluster (#260)
Signed-off-by: Yang Le <yangle@redhat.com>
2023-09-01 05:52:58 +02:00
Qing Hao
c625fd317a 🌱 remove ClusterSet ClusterSetBinding API version v1beta1 (#257)
* update api

Signed-off-by: haoqing0110 <qhao@redhat.com>

* remove webhook

Signed-off-by: haoqing0110 <qhao@redhat.com>

* remove migration files

Signed-off-by: haoqing0110 <qhao@redhat.com>

* update api

Signed-off-by: haoqing0110 <qhao@redhat.com>

* add ut for migrationRequestFiles

Signed-off-by: haoqing0110 <qhao@redhat.com>

---------

Signed-off-by: haoqing0110 <qhao@redhat.com>
2023-08-31 16:14:11 +02:00
Yang Le
f444b340c8 🐛 add wlp annotation if necessary (#248)
Signed-off-by: Yang Le <yangle@redhat.com>
2023-08-16 22:55:27 -02:30
Yang Le
8080e5dc3b 🐛 fix the rebootstrap issue (#249)
Signed-off-by: Yang Le <yangle@redhat.com>
2023-08-14 23:07:33 -02:30
Jian Qiu
3167826df9 Use finalizer in api repo (#241)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-08-04 11:54:55 +02:00
xuezhaojun
142fd5b247 Add ClusterAnnotations support. (#234)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2023-07-27 04:31:25 +02:00
Jian Qiu
e810520961 🌱 Refactor code to fix lint warning (#218)
* Refactor code to fix lint warning

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* enable lint for testing files

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-07-25 07:12:34 +02:00
Jian Zhu
8d974c2df8 🐛 Failed to sync sa work-controller-sa in cluster manger hosted mode (#223)
* Failed to sync sa work-controller-sa in cluster manger hosted mode

Signed-off-by: zhujian <jiazhu@redhat.com>

* add secret addon-manager-controller-sa-kubeconfig getting permission

Signed-off-by: zhujian <jiazhu@redhat.com>

* add tests for hosted mode work controller

Signed-off-by: zhujian <jiazhu@redhat.com>

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2023-07-17 04:45:48 +02:00
Jian Zhu
9ff0948184 enable addon management feature gate by default (#222)
Signed-off-by: zhujian <jiazhu@redhat.com>
2023-07-14 09:45:35 +02:00
Jian Qiu
f7cd1402e9 run work and registration as a single binary (#201)
* run registratin/work together

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Fix integration test and lint issue

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Update operator to deploy singleton mode

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Update deps

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-07-14 04:56:48 +02:00
Jian Zhu
5db224052b 🐛 remove klusterlet finalizer forcely (#214)
* remove klusterlet finalizer forcely

Signed-off-by: zhujian <jiazhu@redhat.com>

* add patch options for patcher

Signed-off-by: zhujian <jiazhu@redhat.com>

* add patch options for all patcher funcs

Signed-off-by: zhujian <jiazhu@redhat.com>

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2023-07-11 02:45:17 -04:00