Jian Zhu
75db27dd61
set work agent status-sync-interval when the replica is 1 ( #282 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-09-24 22:21:37 -04:00
Jian Zhu
e6443b6523
Update permission config in addontemplate ( #285 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-09-21 22:08:17 -04:00
Zhiwei Yin
769272cbec
fix failed update roleRef in clusterrolebinding in upgrade case ( #284 )
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2023-09-20 23:16:06 -04:00
Qing Hao
c8410bfbf1
addon consume rollout helpers ( #225 )
...
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-09-20 04:17:48 +02:00
Jian Qiu
bd4982fffc
Fix: change singleton agent sa to work sa ( #279 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-09-15 10:01:14 +02:00
Jian Zhu
fda6514ba6
delete klusterlet if the managed cluster refused the connection ( #278 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-09-14 05:05:34 +02:00
Jian Zhu
90c1dcb5bc
set agent install namespace from addon deployment config for template type addons ( #266 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-09-12 09:42:06 +02:00
Yang Le
1f51d8c6bc
🐛 fix the AlreadyExists logic case if the manifest is not cached by Getter when applying a manifest ( #275 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-09-11 11:47:48 +02:00
Jian Qiu
d5e10c664d
remove deps to k8s.io/kubernetes ( #274 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-09-11 10:32:36 +02:00
Jian Zhu
e0d1ad384c
bump golangci-lint to v1.54.2 ( #270 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-09-07 15:55:12 +02:00
Jian Qiu
404680d302
✨ support singleton in hosted mode ( #258 )
...
* delete old agent when switch to singleton mode
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* run singleton hosted mode
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Sync sa on spoke as external-agent-kubeconfig
Signed-off-by: Jian Qiu <jqiu@redhat.com >
---------
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-09-07 03:33:17 +02:00
Yang Le
7adf6ee1bc
🐛 correct the agent deployment name in different install mode ( #265 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-09-05 05:34:36 +02:00
Jian Qiu
e297899a3c
Remove old agent when upgrade to singleton ( #263 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-09-04 11:07:38 +02:00
Yang Le
ac142e6478
✨ support proxy between hub cluster and managed cluster ( #260 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-09-01 05:52:58 +02:00
Qing Hao
c625fd317a
🌱 remove ClusterSet ClusterSetBinding API version v1beta1 ( #257 )
...
* update api
Signed-off-by: haoqing0110 <qhao@redhat.com >
* remove webhook
Signed-off-by: haoqing0110 <qhao@redhat.com >
* remove migration files
Signed-off-by: haoqing0110 <qhao@redhat.com >
* update api
Signed-off-by: haoqing0110 <qhao@redhat.com >
* add ut for migrationRequestFiles
Signed-off-by: haoqing0110 <qhao@redhat.com >
---------
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-08-31 16:14:11 +02:00
Nitish Chauhan
36e389cc07
adding contextual logging in placement component ( #254 )
...
Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com >
2023-08-24 21:19:17 -04:00
Nitish Chauhan
9dd935b525
adding contextual logging in addon pkg ( #255 )
...
Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com >
2023-08-24 04:29:59 -04:00
Qing Hao
a2b3c6d54c
revert placement decision start index from 1 to keep backward compatibility ( #253 )
...
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-08-23 03:45:27 -02:30
Jian Qiu
88f6f4dd17
Refactor code to start managers with shared informers ( #232 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-08-21 00:03:58 -02:30
Yang Le
f444b340c8
🐛 add wlp annotation if necessary ( #248 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-08-16 22:55:27 -02:30
Yang Le
8b351747c8
🐛 set tls min version to 1.2 ( #245 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-08-15 06:34:56 -02:30
Yang Le
fb6ce75eae
🐛 skip sync of appliedmanifestwork if work is not applied yet ( #244 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-08-15 02:36:15 -02:30
Yang Le
8080e5dc3b
🐛 fix the rebootstrap issue ( #249 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-08-14 23:07:33 -02:30
Nitish Chauhan
6e0937e4d0
🌱 adding contextual logging in registration component ( #220 )
...
* contextual logging for registration component
Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com >
* removing logger from convertTo & convertFrom
Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com >
---------
Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com >
2023-08-14 23:04:55 -02:30
Jian Qiu
3167826df9
Use finalizer in api repo ( #241 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-08-04 11:54:55 +02:00
Yang Le
6d6a6f1d74
🌱 upgrade addondeploymentconfigs crd to latest version ( #243 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-08-03 09:56:39 +02:00
Jian Zhu
a9dae607f6
✨ Support override addon images by the cluster's annotation ( #231 )
...
* ✨ Support override addon images by the cluster's annotation
Signed-off-by: zhujian <jiazhu@redhat.com >
* Add tests for addon image override
Signed-off-by: zhujian <jiazhu@redhat.com >
* upgrade ocm api
Signed-off-by: zhujian <jiazhu@redhat.com >
* refactor integration tests
Signed-off-by: zhujian <jiazhu@redhat.com >
* Upgrade addon framework to watch cluster when deploy addon agent
Signed-off-by: zhujian <jiazhu@redhat.com >
---------
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-08-03 08:57:05 +02:00
Wei Liu
720ae29b27
ignore the manifest uid ( #242 )
...
Signed-off-by: Wei Liu <liuweixa@redhat.com >
2023-08-01 11:53:10 +02:00
Jian Qiu
fb347bd08e
Use apply instead of patch in ssa ( #240 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-08-01 10:35:49 +02:00
xuezhaojun
142fd5b247
Add ClusterAnnotations support. ( #234 )
...
Signed-off-by: xuezhaojun <zxue@redhat.com >
2023-07-27 04:31:25 +02:00
Qing Hao
4f3749970e
fix the placement decision clusters have random order issue ( #235 )
...
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-07-27 03:00:42 +02:00
Jian Qiu
e810520961
🌱 Refactor code to fix lint warning ( #218 )
...
* Refactor code to fix lint warning
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* enable lint for testing files
Signed-off-by: Jian Qiu <jqiu@redhat.com >
---------
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-07-25 07:12:34 +02:00
Jian Qiu
e22faa4545
🌱 Build a commonoption for all managers ( #228 )
...
* Build a commonoption for all managers
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Add unit tests
Signed-off-by: Jian Qiu <jqiu@redhat.com >
---------
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-07-25 03:12:35 +02:00
Qing Hao
5c03624912
divide pre-defined decision groups by length ( #227 )
...
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-07-21 10:34:21 +02:00
Jian Zhu
8d974c2df8
🐛 Failed to sync sa work-controller-sa in cluster manger hosted mode ( #223 )
...
* Failed to sync sa work-controller-sa in cluster manger hosted mode
Signed-off-by: zhujian <jiazhu@redhat.com >
* add secret addon-manager-controller-sa-kubeconfig getting permission
Signed-off-by: zhujian <jiazhu@redhat.com >
* add tests for hosted mode work controller
Signed-off-by: zhujian <jiazhu@redhat.com >
---------
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-07-17 04:45:48 +02:00
Jian Zhu
9ff0948184
enable addon management feature gate by default ( #222 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-07-14 09:45:35 +02:00
Jian Qiu
f7cd1402e9
✨ run work and registration as a single binary ( #201 )
...
* run registratin/work together
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Fix integration test and lint issue
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Update operator to deploy singleton mode
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Update deps
Signed-off-by: Jian Qiu <jqiu@redhat.com >
---------
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-07-14 04:56:48 +02:00
Jian Zhu
5db224052b
🐛 remove klusterlet finalizer forcely ( #214 )
...
* remove klusterlet finalizer forcely
Signed-off-by: zhujian <jiazhu@redhat.com >
* add patch options for patcher
Signed-off-by: zhujian <jiazhu@redhat.com >
* add patch options for all patcher funcs
Signed-off-by: zhujian <jiazhu@redhat.com >
---------
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-07-11 02:45:17 -04:00
Qing Hao
66498342dd
🌱 placement support decision groups ( #200 )
...
* placement support decision groups
Signed-off-by: haoqing0110 <qhao@redhat.com >
* update decision generation flow
Signed-off-by: haoqing0110 <qhao@redhat.com >
* fix label update issue
Signed-off-by: haoqing0110 <qhao@redhat.com >
* update decision group logic
Signed-off-by: haoqing0110 <qhao@redhat.com >
* update placement and decision with patcher
Signed-off-by: haoqing0110 <qhao@redhat.com >
* modify code based on review comments
Signed-off-by: haoqing0110 <qhao@redhat.com >
---------
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-07-10 09:46:23 -04:00
Jian Zhu
21ee8d4c88
use DeploymentAvailability to check addon health ( #212 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-07-05 10:25:55 -04:00
Jian Qiu
d93268bb12
Add owner for addon manager component ( #213 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-07-05 05:22:07 -04:00
Jian Qiu
8c92c70e6d
Being able to match multiple items in jsonpath ( #202 )
...
This allows a jsonpatch to match multiple items and
returns a list with jsonraw
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-07-05 04:32:52 -04:00
Zhiwei Yin
0adc7664ae
refactor rbacfinalizercontroller to fix cluster ns is terminating after delete clustermanager ( #211 )
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2023-07-04 21:33:41 -04:00
Jian Zhu
40bc557c47
🐛 make the custom sign ca secret namespace fixed ( #205 )
...
* update vendor ocm api
Signed-off-by: zhujian <jiazhu@redhat.com >
* make the custom sign ca secret name fixed
Signed-off-by: zhujian <jiazhu@redhat.com >
* make the custom sign ca secret namespace fixed
Signed-off-by: zhujian <jiazhu@redhat.com >
* format go import for test files
Signed-off-by: zhujian <jiazhu@redhat.com >
* update vendor ocm api
Signed-off-by: zhujian <jiazhu@redhat.com >
---------
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-07-04 00:01:23 -04:00
Yang Le
1a526be0cc
🌱 increase the default work eviction grace period to 60 minutes ( #203 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-07-02 23:03:24 -04:00
Qing Hao
de2b7d35be
generalize cluster selector method ( #204 )
...
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-06-29 15:11:56 +02:00
Jian Qiu
e4792e4b83
Refactor to use common queue/filter funcs ( #197 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-06-28 15:59:19 +02:00
Jian Zhu
9450d14759
🌱 add e2e tests for addon manager ( #199 )
...
* add e2e tests for addon manager
Signed-off-by: zhujian <jiazhu@redhat.com >
* test image override and node placement for addon manager
Signed-off-by: zhujian <jiazhu@redhat.com >
---------
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-06-28 15:45:43 +02:00
Jian Qiu
987d7c7c2a
Use patcher in addon manager code ( #198 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-06-27 12:08:15 +02:00
Jian Zhu
a78d9f457d
🌱 Move addon manager from addon-framework to ocm repo ( #196 )
...
* update vendor to add addon-framework
Signed-off-by: zhujian <jiazhu@redhat.com >
* Move addon manager from addon-framework to ocm repo
Signed-off-by: zhujian <jiazhu@redhat.com >
* add integration tests for addon manager
Signed-off-by: zhujian <jiazhu@redhat.com >
* push addon manager image post commit
Signed-off-by: zhujian <jiazhu@redhat.com >
* use library-go to refactor addon controllers
Signed-off-by: zhujian <jiazhu@redhat.com >
---------
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-06-27 03:59:54 +02:00