Commit Graph

101 Commits

Author SHA1 Message Date
xuezhao
edef33de92 Retrigger CSR when subject org and ou doesn't match. (#377)
Signed-off-by: GitHub <noreply@github.com>
2024-03-14 08:44:16 +00:00
Qing Hao
b4bf3d0609 update the addon-framework and getSpechHash algorithm (#371)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2024-03-12 07:46:27 +00:00
Wei Liu
b1b734aa7a support cloudevents for manifestworkreplicaset (#352)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-03-06 13:17:22 +00:00
Jian Qiu
92d4f86837 Add a flag for work agent to set raw json length (#366)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-03-06 03:52:16 +00:00
Jian Qiu
1c3cb033b0 Bump ocm/api to v0.13.0 (#361)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-02-21 08:51:34 +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
c04ab368de Bump api and addon-framework deps (#354)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-01-23 07:40:26 +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
Jian Zhu
5d99f4bf50 Check the template type addon status immediately when the cluster status changes (#350)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-01-22 01:20:48 +00:00
Wei Liu
889ebf2dee Switch to sdk-go for cloudevents (#347)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-01-18 03:09:13 +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
Jian Qiu
1d42f4285e Switch to sdk-go for helper functions (#346)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-01-17 14:28:54 +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
Qing Hao
40135fd4ba addon support rollout configs (#340)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2024-01-08 05:49:06 +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
9dc8f104cf Update api dependencies and handle deprecated code. (#333)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2023-12-20 10:21:48 +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
xuezhaojun
5884bc5c21 Add clock sync condition controller. (#312)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2023-12-05 02:05:36 +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
Jian Qiu
f89d535ff3 skip namespace in resourceMeta for cluster scoped resource (#324)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-11-29 07:31:31 +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
Jian Zhu
6571a8a4d9 Support setting manifest work config by addon template (#308)
*  Support setting manifest work config by addon template

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

* add unit tests

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

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2023-11-20 14:09:38 +00:00
Mohamed ElSerngawy
615f5a4441 Update OCM APIs and apply Rollout strategy API changes (#310)
Signed-off-by: melserngawy <melserng@redhat.com>
2023-11-16 02:36:16 +00:00
Mohamed ElSerngawy
35680c3ca3 Implement ManifestWorkReplicaSet RollOut strategy (#259)
* Implement rollout strategy

Signed-off-by: melserngawy <melserng@redhat.com>

* Update API and new logic

Signed-off-by: melserngawy <melserng@redhat.com>

---------

Signed-off-by: melserngawy <melserng@redhat.com>
2023-11-02 03:08:35 +00:00
Qing Hao
2f4ff9f424 🌱 add metrics for placement (#297)
* add metrics for placement

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

* record plugin metrics in schedule()

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

* add plugin type

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

---------

Signed-off-by: haoqing0110 <qhao@redhat.com>
2023-10-26 06:44:59 +00:00
Zhiwei Yin
f003ed38a5 refactor gc controller (#229)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2023-10-23 07:05:35 +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
Qing Hao
495e4cb7b7 upgrade addon rollout library (#288)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2023-10-09 07:00:56 +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
Jian Zhu
e6443b6523 Update permission config in addontemplate (#285)
Signed-off-by: zhujian <jiazhu@redhat.com>
2023-09-21 22:08:17 -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
Qing Hao
c8410bfbf1 addon consume rollout helpers (#225)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2023-09-20 04:17:48 +02: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
90c1dcb5bc set agent install namespace from addon deployment config for template type addons (#266)
Signed-off-by: zhujian <jiazhu@redhat.com>
2023-09-12 09:42:06 +02:00
Yang Le
1f51d8c6bc 🐛 fix the AlreadyExists logic case if the manifest is not cached by Getter when applying a manifest (#275)
Signed-off-by: Yang Le <yangle@redhat.com>
2023-09-11 11:47:48 +02:00
Jian Qiu
d5e10c664d remove deps to k8s.io/kubernetes (#274)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-09-11 10:32:36 +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
Nitish Chauhan
36e389cc07 adding contextual logging in placement component (#254)
Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>
2023-08-24 21:19:17 -04:00
Nitish Chauhan
9dd935b525 adding contextual logging in addon pkg (#255)
Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>
2023-08-24 04:29:59 -04:00
Qing Hao
a2b3c6d54c revert placement decision start index from 1 to keep backward compatibility (#253)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2023-08-23 03:45:27 -02:30