Commit Graph

158 Commits

Author SHA1 Message Date
Jian Zhu
41197e576b Set the first daemonset namespace to registration namespace (#536)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-06-21 03:13:02 +00:00
Jian Zhu
3b2601dcfb Support daemonSet with AddOnTemplate (#521)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-06-19 15:57:46 +00:00
Jian Zhu
c5729ae335 Add install namespace to built in values (#533)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-06-19 11:03:20 +00:00
Zhiwei Yin
12baec945a fix the label cannot be number (#531)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-06-19 07:04:12 +00:00
Ohki Nozomu
1227b71043 Fix typo: Rename 'CommoOpts' to 'CommonOpts' (#523)
Signed-off-by: ohkinozomu <nozomunoise@gmail.com>
2024-06-17 02:21:10 +00:00
Wei Liu
34fa5b55c4 upgrade sdk (#517)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-06-14 13:50:55 +00:00
Jian Zhu
4a329091aa Add well known status rule for daemonsets (#518)
* Add well known status rule for daemonsets

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

* Add integration tests

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

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2024-06-14 01:58:08 +00:00
Qing Hao
462992fd4c update mca progressing condition when desired and last applied matches (#513)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2024-06-13 06:39:26 +00:00
Zhiwei Yin
287a6fbd26 fix issue that pull secret and ns are synced labels when enable-sync-labels is disabled (#511)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-06-13 02:00:18 +00:00
Wei Liu
8e5d1a13bc using managed cluster instead of spoke in log msg (#512)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-06-12 08:44:56 +00:00
Qing Hao
8e792c14d8 simplify the addon progressing message (#499)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2024-06-12 01:24:46 +00:00
Jian Zhu
b38dc2ccef Update ClusterCertificateRotated to false if the signer name is invalid (#507)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-06-11 01:56:43 +00:00
Jian Qiu
9b36e1102d Readonly strategy (#494)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-06-07 07:39:59 +00:00
Zhiwei Yin
c4b2c65080 add enable-sync-labels flag to klusterlet operator (#505)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-06-06 15:03:12 +00:00
Jian Zhu
00c39e2712 🐛 Refresh external managed token secret if service account is deleted (#504)
* Refresh external managed token secret if service account is deleted

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

* Debug e2e

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

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2024-06-06 13:17:23 +00:00
Wei Liu
61a74bb348 upgrade sdk-go (#498)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-06-06 07:36:33 +00:00
Jian Qiu
84ec2b2159 Correct label selector for addon to get works (#497)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-06-06 03:08:39 +00:00
Jian Zhu
ea839f1369 🐛 Check if template is nil when getting the addon agent registration namespace (#500)
* Check if template is nil when getting the addon agent registration namespace

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

* Fix typo

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

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2024-06-05 13:43:44 +00:00
Jian Zhu
3ac9655565 Refine the cluster available event messages (#496)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-06-05 07:46:02 +00:00
xuezhao
0357cb99e1 Registration-agent supports multiple bootstrapkubeconfigs and switch-hub. (#443)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-06-04 13:46:39 +00:00
Zhiwei Yin
7fd733082f sync labels from klusterlet to all agent resources (#475)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-06-04 06:49:49 +00:00
Jian Qiu
c056181096 Add a disable-default-addon-namespace flag (#484)
* Add a disable-default-addon-namespace flag

if the flag is set, default addon ns will not be created
by the operator.

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

* Update with comments

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

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-06-03 06:54:15 +00:00
Rokibul Hasan
4e9859b0b6 🐛 Fix "log.SetLogger(...) was never called" in wrok-webhook (#489)
* Fix "log.SetLogger(...) was never called" in wrok-webhook

Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>

* Move logger to the beginning of the func

Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>

* Run make fmt-imports

Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>

---------

Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
2024-06-03 01:48:52 +00:00
Rokibul Hasan
b545546a7b 🐛 Fix "log.SetLogger(...) was never called" in registration webhook (#488)
* Fix "log.SetLogger(...) was never called" in registration webhook

Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>

* Move logger to the beginning of the func

Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>

---------

Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
2024-06-03 01:43:22 +00:00
xuezhao
c61895ca6b Add event when stop creating CSR too many. (#482)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-05-30 01:45:52 +00:00
Jian Zhu
468fdc0476 Exclude terminating clusters from Placementdecision (#480)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-05-29 01:45:08 +00:00
Jian Zhu
66d4e782ec 🐛 Regenerate the hub kubeconfig secret if the cluster name of the current context changes (#473)
* Regenerate the hub kubeconfig secret if the cluster name of the current context changes

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

* Add an integration test

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

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2024-05-23 14:31:09 +00:00
DONG BEIQING
22da639109 configurable controller replicas and master node selector (#468)
* configurable controller replicas and master node selector

Signed-off-by: Dong Beiqing <350758787@qq.com>

* run make fmt-imports

Signed-off-by: Dong Beiqing <350758787@qq.com>

* shorter lines

Signed-off-by: Dong Beiqing <350758787@qq.com>

* rename ControllerReplicas to DeploymentReplicas

Signed-off-by: Dong Beiqing <350758787@qq.com>

* rename masterNodeLabelSelectors to controlPlaneNodeLabels

Signed-off-by: Dong Beiqing <350758787@qq.com>

* rename controlPlaneNodeLabels to controlPlaneNodeLabelSelector

Signed-off-by: Dong Beiqing <350758787@qq.com>

---------

Signed-off-by: Dong Beiqing <350758787@qq.com>
2024-05-21 10:30:38 +00:00
Jian Zhu
df3b290dc5 Handle hosted mode addons in addon progressing controller (#464)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-05-16 01:56:57 +00:00
Zhiwei Yin
319d9af8a1 igonre failed to get pullsecret error (#463)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-05-15 06:53:26 +00:00
Jian Zhu
fd65f371d6 Only decorate namespace for namespaced resources (#462)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-05-15 02:01:56 +00:00
Jian Zhu
5313ff714e Refresh external managed token secret if service account ns changes (#458)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-05-14 07:11:37 +00:00
Jian Qiu
a31ee084a7 Always create default addon namespace (#457)
The addon namespace should always be default on.
The operator will not create addon ns based
on klusterlet install namespace.

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-05-14 07:08:53 +00:00
Chunlin Yang
4117a4b302 upgrade sdk to support Kafka as a cloudevents driver (#460)
* upgrade sdk to support Kafka as a cloudevents driver

Signed-off-by: clyang82 <chuyang@redhat.com>

* fix format issue

Signed-off-by: clyang82 <chuyang@redhat.com>

---------

Signed-off-by: clyang82 <chuyang@redhat.com>
2024-05-14 02:03:34 +00:00
Yang Le
4e2918120c 🌱 honor the settings of AppliedManifestWorkEvictionGracePeriod in Klusterlet API (#454)
Signed-off-by: Yang Le <yangle@redhat.com>
2024-05-13 08:36:53 +00:00
Zhiwei Yin
e4202ddadb failed sync image stop other reconciler (#456)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-05-13 07:22:37 +00:00
Zhiwei Yin
f44670d314 update provider name (#453)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-05-09 22:54:56 +00:00
Jian Zhu
c749b42ca0 Send available condition events for managed cluster (#450)
* Send available condition events for managed cluster

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

* Send available condition events for managed cluster

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

* Rename event reporting component

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

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2024-05-06 07:00:36 +00:00
Jian Qiu
5fc1dbdce7 🐛 Remove old ns when klusterlet ns is changed (#442)
* Remove old ns when klusterlet ns is changed

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

* Resolve comments

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

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-05-06 03:15:48 +00:00
Zhiwei Yin
2636009a52 Add image pullSecret to hub controllers (#397)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-04-28 07:18:14 +00:00
Wei Liu
147f40c363 Revert "upgrade sdk to support Kafka (#436)" (#446)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-04-26 07:16:17 +00:00
Wei Liu
0882f6d058 upgrade sdk to support Kafka (#436)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-04-25 04:23:21 +00:00
Morven Cao
7154863106 support work driver config for cluster manager. (#381)
* support work driver config for cluster manager.

Signed-off-by: morvencao <lcao@redhat.com>

* address comments.

Signed-off-by: morvencao <lcao@redhat.com>

---------

Signed-off-by: morvencao <lcao@redhat.com>
2024-04-24 08:33:13 +00:00
Jian Qiu
08cfa4f20d Set name of namespace in namespace decorator (#440)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-04-24 06:37:39 +00:00
Jian Zhu
fe6e75fc0d Refactor template addon get values func (#438)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-04-23 02:02:47 +00:00
Jian Qiu
a7adf5d517 Set install namespace of addonTemplate from config (#417)
* Set install namespace of addonTemplate from config

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

* Add an e2e test case

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

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-04-22 08:32:44 +00:00
Morven Cao
5f1ec4031f update addon manager. (#434)
Signed-off-by: morvencao <lcao@redhat.com>
2024-04-22 02:12:29 +00:00
xuezhao
dee7f10633 Add default values for workloadsourcedriver and worksourceloadconfig. (#432)
Signed-off-by: GitHub <noreply@github.com>
2024-04-22 01:53:15 +00:00
xuezhao
eba3d9670b Refactor Lease controller test cases. (#435)
Signed-off-by: GitHub <noreply@github.com>
2024-04-22 01:50:29 +00:00
Jian Qiu
37693a4c58 Get default registration namespace from template manifest (#427)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-04-17 09:42:28 +00:00