Commit Graph

178 Commits

Author SHA1 Message Date
xuezhaojun
fc792f3816 Fix: deny accept request when namespace is terminating. (#310)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2023-04-09 08:39:36 -04:00
Jian Qiu
2238edce7d User generic in cert approve controller (#309)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-04-05 21:18:47 -04:00
Jian Qiu
ad1bef9153 Read namespce from status at first to build config (#308)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-04-04 03:13:36 -04:00
Wei Liu
261bb16b70 fix auto approval flag (#307)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2023-03-29 14:21:29 +02:00
Wei Liu
6e14d95873 auto approve bootstrap csr (#301)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2023-03-28 05:19:31 -04:00
DangPeng Liu
e5972b44e1 make LeaseDuration/RenewDeadline/RetryPeriod configuable (#306)
Signed-off-by: ldpliu <daliu@redhat.com>
2023-03-23 00:04:31 -04:00
Jian Qiu
f39b00d4e7 Validate metadata.name of managed cluster (#304)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-03-15 21:43:13 -04:00
Wei Liu
33525a94ff upgrade kube to 1.26 (#302)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2023-03-02 03:50:47 +01:00
Ohki Nozomu
cc7a5cdd96 Remove anonymous check from managedClusterCreatingController sync (#299)
Signed-off-by: aii-nozomu-oki <h-nozomu.oki@inside.ai>
2023-02-14 08:40:55 -05:00
Jian Qiu
177f916c06 use labels in api repo (#290)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-01-31 01:47:32 -05:00
Wei Liu
9bf732aab3 roll back code to support lower version k8s (#291)
Signed-off-by: Wei Liu <liuweixa@redhat.com>

Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-12-15 10:54:37 -05:00
Wei Liu
923cd19f37 using requeue cluster instead of resync lease controller (#288)
Signed-off-by: Wei Liu <liuweixa@redhat.com>

Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-12-08 01:54:10 -05:00
Wei Liu
18e798299b exclude add-on csrs (#286)
Signed-off-by: Wei Liu <liuweixa@redhat.com>

Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-11-21 07:33:49 -05:00
DangPeng Liu
4d8c5c5995 upgrade clusterset api to v1beta2 (#273)
Signed-off-by: ldpliu <daliu@redhat.com>

Signed-off-by: ldpliu <daliu@redhat.com>
2022-11-17 08:10:06 +00:00
DangPeng Liu
ed8faa7c7d set min tls version (#284)
Signed-off-by: ldpliu <daliu@redhat.com>

Signed-off-by: ldpliu <daliu@redhat.com>
2022-11-16 03:45:23 +00:00
DangPeng Liu
9878ed071a fix validating webhook (#282)
Signed-off-by: ldpliu <daliu@redhat.com>

Signed-off-by: ldpliu <daliu@redhat.com>
2022-11-14 01:32:23 +00:00
Jian Qiu
2e1c039a8e Add SetExternalKubeClientSet to allow injecting to APIServer's admission (#281)
Signed-off-by: Jian Qiu <jqiu@redhat.com>

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-11-04 05:22:57 -04:00
Wei Liu
d8dd24899b ensure a cluster lease is updated after the cluster is restored (#280)
Signed-off-by: Wei Liu <liuweixa@redhat.com>

Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-11-04 05:14:46 -04:00
DangPeng Liu
1576fb0925 rewrite webhook using controller runtime (#278)
Signed-off-by: ldpliu <daliu@redhat.com>

Signed-off-by: ldpliu <daliu@redhat.com>
2022-11-02 06:43:25 -04:00
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