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 Qiu
79c6b55fae
Fix: delete addon crd at first ( #277 )
...
This is to ensure manifestwork of addon is deleted at first.
Signed-off-by: Jian Qiu <jqiu@redhat.com >
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-09-28 04:05:36 +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
ivanscai
ca32de775b
add skip-remove-crds option for cluster-manager, to choose if skip removing CRDs when ClusterManager is deleting ( #274 )
...
Signed-off-by: ivan-cai <caijing.cai@alibaba-inc.com >
Signed-off-by: ivan-cai <caijing.cai@alibaba-inc.com >
2022-09-13 17:40:13 +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
Jian Qiu
b004bcc614
Apply only when having finalizer ( #270 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-08-22 10:06:14 -04:00
Jian Zhu
59b5e56fd3
Refactor to split two controllers to handle klusterlet deployment and cleanup ( #269 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-08-18 03:31:13 +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
xuezhaojun
de7ab7ad24
Add controller to sync image pull secret into addon namespaces. ( #253 )
...
* add addon-controller
Signed-off-by: xuezhaojun <zxue@redhat.com >
* fix and add testcases
Signed-off-by: xuezhaojun <zxue@redhat.com >
* add test cases
Signed-off-by: xuezhaojun <zxue@redhat.com >
* add permission and change constant name
Signed-off-by: xuezhaojun <zxue@redhat.com >
* change permission
Signed-off-by: xuezhaojun <zxue@redhat.com >
* fix
Signed-off-by: xuezhaojun <zxue@redhat.com >
* add permission into addon-management clusterrole
Signed-off-by: xuezhaojun <zxue@redhat.com >
* split permission part into another PR
Signed-off-by: xuezhaojun <zxue@redhat.com >
* split permission part into another PR
Signed-off-by: xuezhaojun <zxue@redhat.com >
* split permission part into another PR
Signed-off-by: xuezhaojun <zxue@redhat.com >
* change annotation to labels
Signed-off-by: xuezhaojun <zxue@redhat.com >
* rename the pkg name
Signed-off-by: xuezhaojun <zxue@redhat.com >
* rename the pkg name
Signed-off-by: xuezhaojun <zxue@redhat.com >
* Add comments to explain why we keep sync secret in klusterlet-controller
Signed-off-by: xuezhaojun <zxue@redhat.com >
2022-07-08 01:28:14 +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
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
855199ea43
clean resource before apply new ( #257 )
...
* clean resource before apply new
Signed-off-by: haoqing0110 <qhao@redhat.com >
* update
Signed-off-by: haoqing0110 <qhao@redhat.com >
2022-07-01 04:59:48 +00:00
Yang Le
91bc2dc7c7
keep appliedmanifestwork & clusterclaim CRDs when unstalling klusterlet ( #255 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2022-06-29 08:52:44 +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
Jian Qiu
5655fce48e
Upgrade library and api ( #247 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-05-30 04:08:58 -04: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
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
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
Jian Qiu
a45f8bcc4b
Add disable-leader-election flag ( #221 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-03-22 07:19:22 +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 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
78f2de10b1
Add finalizer before creating clients ( #216 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-03-14 10:32:29 -04:00
Jian Zhu
4389af9344
Reduce resource request ( #218 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-03-14 09:08:17 -04:00
Zhiwei Yin
30c516b485
fix typo ( #214 )
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2022-03-14 03:04:16 -04:00
Zhiwei Yin
a67f11c21e
only set work-agent replica 0 when hub-kubeconfig-secret is missing ( #213 )
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2022-03-10 05:40:06 -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
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
Jian Qiu
61c96873b3
Refactor on connecton check in klusterlet ( #202 )
...
1. Update observerved generation
2. Code update to clear the logic
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-02-14 02:50:36 -05:00
Jian Qiu
d67b0fb905
Fix wrong replica in condition message ( #201 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-02-08 21:49:11 -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
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
Zhiwei Yin
6814943229
scale up the work agent deployment after the hub-kuebeconfig-secret is created ( #184 )
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2022-01-18 01:36:05 -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
xuezhaojun
b181f4d6dd
remove unused field in clustermanager controller ( #189 )
...
Signed-off-by: xuezhaojun <zxue@redhat.com >
2022-01-14 02:33:23 +01:00
Qing Hao
50f1e8410a
add addonplacementscore ( #187 )
...
* add addonplacementscore
Signed-off-by: haoqing0110 <qhao@redhat.com >
* remove addonplacementscore on spoke
Signed-off-by: haoqing0110 <qhao@redhat.com >
2022-01-11 10:55:09 +01:00
Min Kim
00c6bb1d89
adding an option that skips placeholder hub secret ( #185 )
...
Signed-off-by: yue9944882 <291271447@qq.com >
2022-01-10 14:34:50 +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