Commit Graph

417 Commits

Author SHA1 Message Date
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
xuezhaojun
a763bf26f6 Upgrade dependencies. (#305)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2023-03-21 06:58:35 -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
xuezhaojun
8791e8e4f8 Remove: work directory in github action. (#303)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2023-03-09 04:24:12 -05: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
dependabot[bot]
caebefcf83 Bump golang.org/x/net from 0.2.0 to 0.7.0 (#300)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.2.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.2.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-20 02:26:54 +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
DangPeng Liu
28255f6a9d use latest api to migrate clusterset (#297)
Signed-off-by: ldpliu <daliu@redhat.com>
2023-02-13 21:49:31 -05:00
dependabot[bot]
6f94ec28dd Bump github.com/emicklei/go-restful (#296)
Bumps [github.com/emicklei/go-restful](https://github.com/emicklei/go-restful) from 2.9.5+incompatible to 2.16.0+incompatible.
- [Release notes](https://github.com/emicklei/go-restful/releases)
- [Changelog](https://github.com/emicklei/go-restful/blob/v3/CHANGES.md)
- [Commits](https://github.com/emicklei/go-restful/compare/v2.9.5...v2.16.0)

---
updated-dependencies:
- dependency-name: github.com/emicklei/go-restful
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-09 22:05:45 -05:00
Wei Liu
2d41babbb3 update imagebuilder (#293)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2023-02-06 02:54:37 +01:00
Wei Liu
ace1bdc1cc add v0.10 changelog (#292)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2023-02-02 14:20:45 +01: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
Yuchen YAO
6fca53a9e5 upgrade github action (#289)
Signed-off-by: ycyaoxdu <yaoyuchen0626@163.com>

Signed-off-by: ycyaoxdu <yaoyuchen0626@163.com>
2022-12-06 22:52:28 -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
xuezhaojun
ca4fd4345e Upgrade ginkgo to v2. (#283)
Signed-off-by: xuezhaojun <zxue@redhat.com>

Signed-off-by: xuezhaojun <zxue@redhat.com>
2022-11-16 01:20:53 +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
960b2690d1 add v0.9 changelog (#276)
Signed-off-by: Wei Liu <liuweixa@redhat.com>

Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-10-19 08:10:31 -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
Qing Hao
1612f1017e check e2e mutatingWebhookDeployment replicas (#267)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2022-08-08 01:10:50 +00: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
Wei Liu
5b9fe1431d update libs (#266)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-07-25 08:46:38 +02:00
Jian Qiu
e7d98d0a97 fix release yaml (#264)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-07-12 04:00:34 +00:00
Wei Liu
1de5b58db1 add v0.8 changelog (#263)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-07-11 08:48:18 +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
Qing Hao
84012648dc leader election needs to operate configmaps and leases (#261)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2022-07-05 16:10:11 +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
Qing Hao
483f443898 split registration permissions (#255)
* split registration permissions

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

* add more comments

Signed-off-by: haoqing0110 <qhao@redhat.com>
2022-06-27 08:18:28 +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
Wei Liu
d37ce9d58c enable log flags (#254)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2022-06-15 16:18:20 +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