Commit Graph

114 Commits

Author SHA1 Message Date
Jian Qiu
d14214ee0b Remove addon enable field (#338)
Use feature gate instead

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-03-30 23:47:02 -04:00
Mohamed ElSerngawy
8118b67e1b Add manifestWorkReplicaSets controller (#331)
Signed-off-by: melserngawy <melserng@redhat.com>
2023-03-29 23:11:16 -04:00
Qing Hao
d8a6d334e7 update api (#336)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2023-03-27 02:28:37 -04:00
Qing Hao
ee0a60f013 addon manager feature gates (#325)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2023-03-02 09:29:14 +01:00
DangPeng Liu
87dc41469c remove old webhook (#330)
Signed-off-by: ldpliu <daliu@redhat.com>
2023-03-02 02:40:43 +01:00
Zhiwei Yin
0d87926328 upgrade kube lib to 1.26 (#329)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2023-03-02 00:28:21 +01:00
Jian Qiu
b17b041a13 Upgrade mca/cma APIs (#324)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-02-20 04:18:12 +01:00
DangPeng Liu
f020c8a48d clusterset v1beta1 migration (#315)
Signed-off-by: ldpliu <daliu@redhat.com>
2023-02-12 23:00:58 -05:00
Jian Zhu
9d7ee1149a regenerate and load hosted secrets when ca changes (#316)
Signed-off-by: zhujian <jiazhu@redhat.com>
2023-02-10 01:00:12 -05:00
Jon Jackson
81160817e4 Add OAuthClient permissions to klusterlet-work-clusterrole-execution (#310)
Signed-off-by: Jon Jackson <jonjacks@redhat.com>

Signed-off-by: Jon Jackson <jonjacks@redhat.com>
2022-12-20 22:49:53 -05:00
Jian Zhu
1ab08bd6d7 Make work agent feature gate configurable (#303)
* Make work agent feature gate configurable

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

* Merge registration and work feature gate conditions

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

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-11-27 20:55:43 -05:00
DangPeng Liu
7c8d71e194 use controller-runtime webhook (#293)
Signed-off-by: ldpliu <daliu@redhat.com>

Signed-off-by: ldpliu <daliu@redhat.com>
2022-11-17 06:45:25 +00:00
Wei Liu
3d591bb11b update clustermanangementaddon api (#300)
Signed-off-by: Wei Liu <liuweixa@redhat.com>

Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-11-08 03:28:26 -05:00
Jian Qiu
514fff1469 upgrade appliedmanifestwork API (#298)
Signed-off-by: Jian Qiu <jqiu@redhat.com>

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-11-07 08:27:26 -05:00
DangPeng Liu
820d5b0149 fix conversion webhook in hosted mode (#280)
Signed-off-by: ldpliu <daliu@redhat.com>

Signed-off-by: ldpliu <daliu@redhat.com>
2022-10-19 02:17:03 -04:00
DangPeng Liu
6bf6df2f2c add conversion webhook (#279)
Signed-off-by: ldpliu <daliu@redhat.com>

Signed-off-by: ldpliu <daliu@redhat.com>
2022-10-14 00:19:30 -04:00
Qing Hao
eb6105dd08 remove API Placement PlacementDecision ClusterSet ClusterSetBinding API version v1alpha1 (#278)
* remove API Placement PlacementDecision ClusterSet ClusterSetBinding API version v1alpha1

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

* check migration status before update CRD stored version

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

Signed-off-by: haoqing0110 <qhao@redhat.com>
2022-10-10 11:26:59 +02:00
Jian Zhu
0944f98904 Make work webhook feature gate configurable (#276)
Signed-off-by: zhujian <jiazhu@redhat.com>

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-09-23 08:47:08 +02:00
Jian Zhu
e1bf8191f3 Allow work agent to impersonate serviceaccount (#275)
Signed-off-by: zhujian <jiazhu@redhat.com>

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-09-21 02:59:55 +02:00
Jian Zhu
3d0b5cd219 Allow work agent to create subjectaccessreviews (#273)
Signed-off-by: zhujian <jiazhu@redhat.com>

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-09-15 03:16:53 +02:00
Wei Liu
0f5141c5fc update add-on configuration apis (#272)
Signed-off-by: Wei Liu <liuweixa@redhat.com>

Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-09-09 07:52:55 +02:00
Matt Prahl
291f465601 Allow OCM addons to setup metrics collection with Prometheus (#262)
Related:
https://github.com/stolostron/backlog/issues/23547

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
2022-07-12 13:54:11 +00:00
Bowen Zhu
79d280ad8a Add HubApiServerHostAlias for registration-agent and work-agent (#258)
Signed-off-by: Bowen Zhu <Promacanthus@gmail.com>

Add HubApiServerHostAlias for registration-agent and work-agent
2022-07-11 04:17:01 +00:00
Jian Zhu
4b1061dda0 add permisson for registration agent for running addon in hosted mode (#256)
Signed-off-by: zhujian <jiazhu@redhat.com>
2022-07-05 08:20:14 +00:00
Qing Hao
5ffe3b8a8b leader election needs to operate configmaps and leases (#260)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2022-07-05 06:44:35 +00:00
Qing Hao
803bfb3748 split work permissions (#252)
* split work permissions

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

* add more comments

Signed-off-by: haoqing0110 <qhao@redhat.com>
2022-06-28 02:31:44 +00:00
Qing Hao
54452f060a split registration permissions (#250)
* split registration permissions

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

* more comments

Signed-off-by: haoqing0110 <qhao@redhat.com>
2022-06-27 08:13:31 +00:00
ivanscai
3401c8e4bd support hubRegistrationFeatureGates and spokeRegistrationFeatureGates (#230)
* support RegistrationFeatureGates in ClusterManager and Klusterlet

Signed-off-by: ivan-cai <caijing.cai@alibaba-inc.com>

* update to use DefaultHubRegistrationFeatureGates&DefaultSpokeRegistrationFeatureGates in api repo to check registration variable if valid

Signed-off-by: ivan-cai <caijing.cai@alibaba-inc.com>

* enable addonmanagement and defaultClusterset feature if RegistrationConfiguration is nil

Signed-off-by: ivan-cai <caijing.cai@alibaba-inc.com>

* fix some errors in unit test

Signed-off-by: ivan-cai <caijing.cai@alibaba-inc.com>

* add RegistrationFeatureGates to registration webhook

Signed-off-by: ivan-cai <caijing.cai@alibaba-inc.com>

Co-authored-by: caijing.cai <caijing.cai@alibaba-inc.com>
2022-06-22 06:47:06 +00:00
DangPeng Liu
9304a9cfab remove set join permission for registration-controller (#248)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-06-06 02:14:16 -04:00
Jian Qiu
5655fce48e Upgrade library and api (#247)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-05-30 04:08:58 -04:00
Jian Qiu
7f9988252c Upgrade golang to 1.18 (#246)
Also upgrade api library

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-05-25 02:07:41 -04:00
DangPeng Liu
25373ddab3 use new clusterset api (#242)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-05-08 21:46:26 -04:00
DangPeng Liu
8503c1bd13 add all clusterset join permission (#241)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-04-28 02:43:16 -04:00
Yang Le
2d5ab901d9 add join permission on default clusterset (#236)
Signed-off-by: Yang Le <yangle@redhat.com>
2022-04-15 06:20:19 -04:00
Yang Le
c93f5cefd2 add missing permission on kube v1.11.0 (#234)
Signed-off-by: Yang Le <yangle@redhat.com>
2022-04-08 06:48:17 -04:00
Wei Liu
d501691f1b add lease permissions for library-go update (#233)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-04-08 01:28:21 -04:00
Qing Hao
51b9c703f4 add permission for leases.coordination.k8s.io (#231)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2022-04-01 21:24:05 -04:00
Jian Qiu
812b48298a Add lease permission for leader election (#229)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-03-30 12:16:22 -04:00
Yang Le
ebf48bc123 support Klusterlet.Spec.Namespace in hosted mode (#227)
Signed-off-by: Yang Le <yangle@redhat.com>
2022-03-30 05:20:13 -04:00
Jian Qiu
7ecf9754aa Disable apf in webhook (#222)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-03-23 10:46:20 +01:00
xuezhaojun
7aa41cda65 Add hosted mode in klusterlet (#220)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2022-03-15 05:03:53 -04:00
xuezhaojun
84e12c9197 Change to hosted mode in cluster-manager (#219)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2022-03-15 01:11:52 -04:00
Jian Zhu
4389af9344 Reduce resource request (#218)
Signed-off-by: zhujian <jiazhu@redhat.com>
2022-03-14 09:08:17 -04:00
DangPeng Liu
55bc274d79 enable feature gate for registration webhook (#210)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-03-03 03:47:22 -05:00
Yuchen YAO
c1b1067f54 enable DefaultClusterSet feature gate (#209)
Signed-off-by: ycyaoxdu <yaoyuchen0626@163.com>
2022-03-02 09:14:26 -05:00
DangPeng Liu
66e65a2fb7 upgrade clusterset api (#208)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-03-02 01:10:41 -05:00
xuezhaojun
00fcdcd30a add detached mode to cluster-manager controller (#190)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2022-02-24 07:57:40 -05:00
Qing Hao
54b11ba5d9 add addonplacementscores permission for placement controller (#203)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2022-02-14 05:04:37 -05:00
Qing Hao
2c2316fafa update placement and placementdecision to v1beta1 (#198)
* update placement and placementdecision to v1beta1

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

* add placement and placementdecision StorageVersionMigration

Signed-off-by: haoqing0110 <qhao@redhat.com>
2022-01-27 09:06:51 -05:00
Jian Qiu
156867faf5 Disable leader election when replica is 1 (#193)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-01-18 04:50:05 -05:00