Commit Graph

54 Commits

Author SHA1 Message Date
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
Jian Qiu
c3baabeec2 use crd manager to update and clean crds (#297)
* use crd manager to update clean crds

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

* Update tests

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

* Rebase crd manager

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

* build client builder to make code clearer

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

* Add ut for crdmanager

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

* Compare crd spec when update

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

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-12-15 20:40:46 -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
Jian Qiu
94f17dedd1 Refactor clustermanager controller (#305)
* Refactor clustermanager controller

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

* Refactor cond update

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

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-11-23 04:30:49 -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
Jian Zhu
3f119fdefe Fix the paradox description of the klusterlet condition (#290)
Signed-off-by: zhujian <jiazhu@redhat.com>

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-10-30 22:10:14 -04:00
Jian Qiu
fbbb5d9f48 Fix token path in hosted mode (#284)
Signed-off-by: Jian Qiu <jqiu@redhat.com>

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-10-18 02:54:08 -04:00
Jian Zhu
432fac3616 Remove install mode detached (#282)
Signed-off-by: zhujian <jiazhu@redhat.com>

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-10-17 05:43:34 -04: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
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 Qiu
a7dd402db8 Use token request to sync sa (#259)
* Use token request to sync sa

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

* Upgrade kind

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-07-06 06:09:10 +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
xuezhaojun
11efeb18b5 Add goci lint. (#243)
* Add goci lint.

Signed-off-by: xuezhaojun <zxue@redhat.com>

* handle errs and remove unused.

Signed-off-by: xuezhaojun <zxue@redhat.com>

* fix fail and remove unused code.

Signed-off-by: xuezhaojun <zxue@redhat.com>
2022-05-10 02:50:42 -04:00
Yang Le
fb61c5d97b set replica to 1 if kube version < v1.14 (#232)
Signed-off-by: Yang Le <yangle@redhat.com>
2022-04-01 22:04:07 -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
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 Qiu
db866a5891 Upgrade api and library (#217)
* Upgrade api and library

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

* update permission for operator

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-03-14 22:23:53 -04:00
Jian Zhu
4389af9344 Reduce resource request (#218)
Signed-off-by: zhujian <jiazhu@redhat.com>
2022-03-14 09:08:17 -04: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
Jian Zhu
71fcc78d5f Make the klusterlet install mode optional (#207)
* Make the klusterlet install mode optional

- Update cluster manager and klusterlet api
- Make the klusterlet install mode optional
- Add e2e test to ensure the backward compatibility

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

* Update vendor for the open cluster management api

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-02-23 22:15:29 -05:00
xuezhaojun
c369b40475 Add ApplyEndpoints in helper (#206)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2022-02-23 21:17:31 -05:00
Jian Qiu
b14296345d fix default mode (#204)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-02-21 03:03:32 -05:00
xuezhaojun
e697e47989 fixed can't get sa token secret when secret name is long (#197)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2022-01-28 02:24:01 -05:00
xuezhaojun
e20d45af59 add nil check for nil clients (#191)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2022-01-14 12:14:17 +01:00
xuezhaojun
bdb3f3f37a add detached mode to migration controller (#188)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2022-01-14 08:17:58 +01:00
Zhiwei Yin
f7ff0557df get the namespace of klusterlet from helper (#181)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2022-01-10 07:42:50 +01:00
xuezhaojun
7b1f044875 support customize cluster manager namespace (#179)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2022-01-06 13:50:37 +01:00
Jian Zhu
dcf93fa3b9 support deploy klusterlet outside of managed cluster (#172)
* support deploy klusterlet outside of managed cluster

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

* create manged cluster kubeconfig by sa syncer

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

* fix CI issues

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

* add unit test

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

* separate the manifests and operations for klusterlet operator

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

* add unit test

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

* add integration test

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

* add e2e test

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

* address code review comments

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

* distinguish the RBAC resource names of managed cluster and management cluster

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

* ensure the klusterlet namespace early

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

* update csv

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-01-04 08:24:14 +01:00
xuezhaojun
de480a0250 fix-apiservice-always-reapply-issue (#178)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2021-12-18 02:00:22 +01:00
xuezhaojun
d8cd7736fc add sa syncer (#176)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2021-12-08 09:44:16 +00:00
Zhiwei Yin
4ee4d15544 update relatedResources in clusterManager and kluterler (#173)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2021-12-01 10:43:58 +01:00
Zhiwei Yin
a9128100fa add nodeSelector and tolerations to deployments
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2021-09-08 15:58:01 +08:00
Jian Qiu
1453d66831 Add image push postsubmit
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2021-06-22 14:29:21 +08:00
Jian Qiu
ef338a1b0b Update deps and enable action
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2021-06-21 11:42:45 +08:00
Jian Qiu
76d6096be8 Change to use kustomize to deploy
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2021-06-18 08:11:12 +08:00
Yang Le
985dcf71cb deploy placement controller
Signed-off-by: Yang Le <yangle@redhat.com>
2021-05-19 12:06:06 +08:00
Zhiwei Yin
4cd18564e8 upgrade CRD to v1 and k8s lib to 1.20.0
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2021-04-12 10:30:10 +08:00
Yang Le
be2d2e6e44 Add CertRotationController
Signed-off-by: Yang Le <yangle@redhat.com>
2021-01-14 17:40:22 +08:00
Yang Le
c6f083f3b9 Delete terminating applied manifestworks when detaching cluster
Signed-off-by: Yang Le <yangle@redhat.com>
2020-12-10 14:17:47 +08:00
liuwei
50e71ae74f reconcile klusterlet bootstrap secret 2020-09-30 12:29:53 +08:00
Zhiwei Yin
609465f787 fix Remediate Static Scan Findings 2020-09-10 14:24:03 +08:00
Jian Qiu
7bdf5a0f07 Update to 1.19.0 and change to use metav1.Condition 2020-09-04 12:09:36 +08:00
liuwei
6730b9ac8d enable registration mutating webhook 2020-07-29 13:12:04 +08:00
Jian Qiu
0efbe99530 Upgrade library-go 2020-06-19 20:51:14 +08:00
Jian Qiu
15a42dd726 Followup of pr33
1. fix some typos
2. change forceRollOut func to be immutable
2020-06-18 16:55:56 +08:00
Jian Qiu
dab4bbf081 Use generation to track update 2020-06-15 17:00:13 +08:00
Jian Qiu
83b53da4dd Add klusterlet degraded status 2020-06-10 11:52:42 +08:00
Michael D. Elder
399a6b9a73 Adopt ManagedCluster & Klusterlet API in nucleus 2020-06-03 19:25:14 -04:00
Michael D. Elder
eb0d088e03 Adopt new API updates for operator 2020-06-03 14:07:17 +08:00