Commit Graph

159 Commits

Author SHA1 Message Date
Jian Qiu
3d4e3377fa Avoid frequent CSR creation (#277)
* Avoid frequent CSR creation

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

* Add todo for threshold value

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

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-10-28 10:02:21 -04:00
Wei Liu
3c49c03e88 update golang to 1.19 (#279)
Signed-off-by: Wei Liu <liuweixa@redhat.com>

Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-10-24 21:14:30 -04:00
Wei Liu
b391219017 remove the support for checking add-on hub lease (#275)
Signed-off-by: Wei Liu <liuweixa@redhat.com>

Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-10-19 03:07:23 -04:00
Wei Liu
fd7eb39cbd stop to discovery addon when its managed cluster is not found (#274)
Signed-off-by: Wei Liu <liuweixa@redhat.com>

Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-10-18 10:00:49 -04:00
DangPeng Liu
883295b635 add conversion webhook to convert clusterset api (#272)
Signed-off-by: ldpliu <daliu@redhat.com>

Signed-off-by: ldpliu <daliu@redhat.com>
2022-10-11 04:02:29 +00:00
Min Kim
1194172bc5 decouple bootstrap informers to distinguish the lifecycle (#271)
Signed-off-by: yue9944882 <291271447@qq.com>

Signed-off-by: yue9944882 <291271447@qq.com>
2022-09-15 16:08:35 +02:00
ivanscai
d6081f91f3 update serverURL and CABundle if ManagedCluster is created before reg… (#270)
* update serverURL and CABundle if ManagedCluster is created before registration-agent running

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

* merge spokeExternalServerURLs to ManagedClusterClientConfigs, and ingnore Unauthorized error

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

* add comment for skipping unauthorized error, and skip unauthorized error when creating ManagedCluster

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

* use skipUnauthorizedError at creating controller

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

Signed-off-by: ivan-cai <caijing.cai@alibaba-inc.com>
2022-09-07 10:21:34 +02:00
Zhiwei Yin
b43a54935f reduce log print (#269)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>

Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2022-08-31 03:53:04 -04:00
Jian Zhu
95d6154425 recreate the hub kubeconfig when addon deploy option changes (#265)
* recreate the hub kubeconfig when addon deploy option changes

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

* put addon agent install option into hash

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

* put addonInstallOption inline in registrationConfig

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-08-04 16:40:48 +00:00
Yang Le
7de42a03a6 support add-on lease on management cluster (#260)
Signed-off-by: Yang Le <yangle@redhat.com>
2022-07-07 09:29:18 +00:00
Bowen Zhu
077793fb37 Add V1beta1CSRAPICompatibility feature gate for registration-controller (#259)
* Add V1beta1CSRAPICompatibility feature gate for registration-controller

Signed-off-by: Promacanthus <promacanthus@gmail.com>

* Add csrInfo and update isSpokeClusterClientCertRenewal

Signed-off-by: Promacanthus <promacanthus@gmail.com>

* Rerun go mod vendor

Signed-off-by: Promacanthus <promacanthus@gmail.com>

* Register V1beta1CSRAPICompatibility and refacotr authorize function

Signed-off-by: Promacanthus <promacanthus@gmail.com>

* Update api dependency

Signed-off-by: Promacanthus <promacanthus@gmail.com>
2022-07-07 02:12:32 +00:00
Jian Zhu
f758ff586c Support generate hub kubeconfigon on the management cluster for addons (#252)
* Support generate hub kubeconfig on the management cluster for addons

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

* Add more comments

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

* Add unit test

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-06-30 03:32:08 +00:00
DangPeng Liu
2dcb530b91 update qps and burst (#249)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-06-20 06:14:24 +00:00
ivanscai
364bce97ef use registration feature gates constants & variabels which in api repo (#253)
Signed-off-by: ivan-cai <caijing.cai@alibaba-inc.com>

Co-authored-by: ivan-cai <caijing.cai@alibaba-inc.com>
2022-06-09 10:28:52 -04:00
DangPeng Liu
5b9b4a2c08 add global clusterset (#251)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-06-09 02:46:14 -04:00
DangPeng Liu
dd2c3fdf19 adapt label selector in clusterset (#242)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-06-06 02:46:02 -04:00
DangPeng Liu
215429b94c remove add default set label controller (#250)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-06-05 23:30:00 -04:00
Jian Qiu
fd33e20727 Update binding status (#248)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-05-31 04:43:26 -04:00
Jian Qiu
9271969e31 Add client cert condition when cert is rotated (#246)
* Add client cert condition when cert is rotated

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

* Fix func name

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-05-29 23:38:43 -04:00
Jian Qiu
b849d2c838 Patch status and finalizers (#244)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-05-12 03:24:40 -04:00
Jian Qiu
186bbcabd8 Add lint check in make verify (#243)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-05-09 03:00:29 -04:00
Yang Le
a243379343 fix clusterset sync issue (#234)
Signed-off-by: Yang Le <yangle@redhat.com>
2022-04-14 06:38:54 -04:00
DangPeng Liu
29f55c944b fix webhook error (#232)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-04-08 03:58:32 -04:00
Wei Liu
12bef6bb91 reduce the get request for managed cluster when checking managed cluster lease status (#226)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-04-07 02:13:34 -04:00
Jian Qiu
9279f318d7 Reduce queue size and add filter for csr informer (#223)
1. always return single key to queue so it will not blow up the queue
2. add filter for csr informer

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-04-06 21:31:29 -04:00
Yang Le
eb0daa24ac allow ManagedCluster creation with taint.timeAdded specified (#224)
Signed-off-by: Yang Le <yangle@redhat.com>
2022-04-06 08:22:53 -04:00
DangPeng Liu
560310e8af set clusterset to default when value is null string (#222)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-04-06 03:54:57 -04:00
Wei Liu
59d2cd6a3e add v0.7 changelog (#220)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-03-24 08:15:23 +01:00
Min Kim
892a6ea782 V1beta1 CSR compatibility (#214)
* [generated] go mod tidy/vendor

Signed-off-by: yue9944882 <291271447@qq.com>

* feature-gate: V1beta1CSRAPICompatibility

Signed-off-by: yue9944882 <291271447@qq.com>
2022-03-23 04:41:00 +01:00
Jian Qiu
ed90432837 Disable apf in webhook (#215)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-03-23 02:33:35 +01:00
Min Kim
a86fa506c9 chore: suppressing log verbosity for test log clarity (#216)
Signed-off-by: yue9944882 <291271447@qq.com>
2022-03-22 10:59:32 +01:00
Yuchen YAO
0ce5210162 add disable annotation detection for default managed cluster set, ensuring users have property to modify default managed cluster set spec. (#210)
Signed-off-by: ycyaoxdu <yaoyuchen0626@163.com>
2022-03-10 22:22:16 -05:00
DangPeng Liu
41c81be5f2 fix override cluster labels (#209)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-03-07 01:28:48 -05:00
Yuchen YAO
9d006722d8 add a controller to set default clusterset label for managedcluster which not set clusterset label (#202)
Signed-off-by: ycyaoxdu <yaoyuchen0626@163.com>
2022-03-02 22:20:32 -05:00
DangPeng Liu
b8a1f9d676 set default in webhook (#205)
Signed-off-by: ldpliu <daliu@redhat.com>
2022-03-02 11:06:28 -05:00
Yang Le
62e8879e5b update clusterset contoller to ignore non-legacy clusterset (#206)
Signed-off-by: Yang Le <yangle@redhat.com>
2022-03-02 05:38:24 -05:00
Yuchen YAO
92178adbec add-default-managedclusterset-controller (#198)
Signed-off-by: ycyaoxdu <yaoyuchen0626@163.com>
2022-03-02 02:50:22 -05:00
Jian Qiu
f3b18aa211 Add hub freature flags (#204)
Also fix some lint issue

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-03-01 01:51:17 -05:00
JiaHao Wei
acf2ee2cfc add taints controller (#188)
Signed-off-by: JiaHao Wei <1335649406@qq.com>
2022-01-26 00:38:40 -05:00
Jian Qiu
983391ba01 Add leader election flag (#193)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-01-17 22:16:05 -05:00
Jian Qiu
3d5b61375f Update cache implementation and remove logic for rbac update (#192)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-01-17 06:35:16 +01:00
Yang Le
ffbb2b9744 enhance webhook to set the value of taint timeAdded (#186)
Signed-off-by: Yang Le <yangle@redhat.com>
2022-01-12 02:54:07 +01:00
Jian Qiu
751c36b6f9 update library and refactor integration test (#189)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-01-06 03:48:36 +01:00
Min Kim
6331fe4629 Skipping customized health check (#187)
* skipping customized health check

Signed-off-by: yue9944882 <291271447@qq.com>

* bump ocm api dep

Signed-off-by: yue9944882 <291271447@qq.com>

* fixes integration test flakiness

Signed-off-by: yue9944882 <291271447@qq.com>
2021-12-30 13:18:10 +01:00
champly
3afdcac894 fix lease interval value set (#184)
* fix lease interval value set

Signed-off-by: champly <champly@outlook.com>

* remove managedcluster leasedurationsecondes value set

Signed-off-by: champly <champly@outlook.com>
2021-12-09 02:36:16 +00:00
Jian Zhu
e5722d507f support run spoke agent outside of managed cluster (#175)
* support run spoke agent outside of managed cluster

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

* define the management cluster

Signed-off-by: zhujian <jiazhu@redhat.com>
2021-12-08 02:08:20 +00:00
Jian Zhu
c849951f90 deploy control plane and agent in two clusters (#182)
* deploy control plane and agent in two clusters

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

* change the default spoke component namespace

Signed-off-by: zhujian <jiazhu@redhat.com>
2021-12-06 01:49:21 +00:00
Yang Le
d331716ed6 re-create addon client cert once bootstrap kubeconfig changes (#172)
Signed-off-by: Yang Le <yangle@redhat.com>
2021-12-02 04:28:35 +01:00
Wei Liu
50b92cd060 avoid recreate lease when cluster is deleting and remove old code (#181)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2021-11-29 10:22:18 +01:00
Jian Qiu
53b1c343cc Replace bindata with embed (#180)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2021-11-23 10:59:40 +01:00