Commit Graph

142 Commits

Author SHA1 Message Date
Jian Qiu
25ea10bcbf Add importer into registration (#753)
* Add importer into registraiton

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

* Add unit tests

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

* Add integration test

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

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-12-16 13:59:55 +00:00
Jian Zhu
3493630ad2 Support configuring proxy for addons (#760)
* Support configuring proxy for addons

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

* Add tests for addon proxy setting

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

* Add e2e test for signer namespace

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

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2024-12-16 08:01:34 +00:00
jaswalkiranavtar
b170f3a41e Cluster decorator interface (#759)
* Add cluster decorator interface in register

And refactor creating to controller to call decorators

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

* Add aws annotations to ManagedCluster using Decorator

Signed-off-by: Gaurav Jaswal <jaswalkiranavtar@gmail.com>

* Addressing review comments

Signed-off-by: Gaurav Jaswal <jaswalkiranavtar@gmail.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
Signed-off-by: Gaurav Jaswal <jaswalkiranavtar@gmail.com>
Co-authored-by: Jian Qiu <jqiu@redhat.com>
2024-12-11 15:59:43 +00:00
Jian Zhu
ddc5024596 Allow Custom Signer signingCA to Specify Namespace in AddOnTemplate (#747)
* Allow Custom Signer signingCA to Specify Namespace in AddOnTemplate

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

* Add e2e test for signer namespace

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

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2024-12-10 09:16:26 +00:00
Jian Zhu
1ef590444c Use e2e images instead of latest (#756)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-12-10 02:59:40 +00:00
Jian Qiu
0897da69da Implement ignoreFields in server side apply (#726)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-12-10 02:56:55 +00:00
Qing Hao
ed367fd739 enable leader election of klusterlet-agent on single node managed clusters (#727)
Signed-off-by: Qing Hao <qhao@redhat.com>
2024-11-29 08:13:48 +00:00
jaswalkiranavtar
93db6de4a1 Starting aws registration by spoke by assuming IAM role on startup and adding annotations to ManagedCluster CR (#714)
* Starting aws registration by spoke by assuming IAM role on startup and adding annotations to ManagedCluster CR

Signed-off-by: Erica Jin <132393634+EricaJ6@users.noreply.github.com>

* Adding integration tests for aws registration

Signed-off-by: Erica Jin <132393634+EricaJ6@users.noreply.github.com>

* Adding more integration tests

Signed-off-by: Erica Jin <132393634+EricaJ6@users.noreply.github.com>

* Addressing review comments

Signed-off-by: Erica Jin <132393634+EricaJ6@users.noreply.github.com>

---------

Signed-off-by: Erica Jin <132393634+EricaJ6@users.noreply.github.com>
2024-11-26 17:34:53 +00:00
Zhiwei Yin
fa3a30b36e support wildcard in manifestConfigs (#703)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-11-21 06:56:46 +00:00
xuezhao
68eb264e56 Revert "enable leader election of klusterlet-agent on single node managed clusters (#695)" (#708)
This reverts commit 8544ff1e29.

Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-11-20 03:45:47 +00:00
Qing Hao
8544ff1e29 enable leader election of klusterlet-agent on single node managed clusters (#695)
Signed-off-by: Qing Hao <qhao@redhat.com>
2024-11-15 02:47:00 +00:00
Rokibul Hasan
369f3fb6ff Update api dependency and remove unnecessary featureGate enabling part (#687)
Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
2024-11-14 07:12:14 +00:00
Jian Qiu
5911a7e920 🐛 Fix manifestwork and appliedmanifestwork unsync issue (#636)
* Fix manifestwork and appliedmanifestwork unsync issue

merge the two controller as reconcilers for one controller

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

* Add an integration test

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

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-11-11 01:59:35 +00:00
xuezhao
7664585c22 Fix: reduce cluster rbac when accpet to false. (#675)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-11-04 02:02:25 +00:00
xuezhao
603b40572d Fix: check error instead of bool to see error msg when case fails. (#682)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-10-31 09:04:58 +00:00
Qing Hao
9181dbbe85 generate mca before testing rollout (#657)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2024-10-18 07:35:05 +00:00
Jian Qiu
8d1fdc297f Add trimmed release version to env (#648)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-10-16 04:32:19 +00:00
Qing Hao
d9ab25283e sync between ManagedCluster and cluster inventory API (#615)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2024-10-15 04:04:41 +00:00
Qing Hao
43c3500738 upgrade framework and check configured condition in addon template (#641)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2024-10-09 12:53:45 +00:00
Qing Hao
851d0152a3 set configured condition in mca (#635)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2024-10-08 13:08:03 +00:00
Qing Hao
4ebe9d7978 🐛 monitor the bootstrap kubeconfig and restart immediately when changes (#630)
* monitor the bootstrap kubeconfig and restart immediately when changes

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

* fix comments

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

---------

Signed-off-by: haoqing0110 <qhao@redhat.com>
2024-09-30 06:24:20 +00:00
Wei Liu
8a2a776f06 using same code for cloudevents integation test (#617)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-09-23 05:21:12 +00:00
Wei Liu
b6763a13c0 remove the creationTimestamp from metadata when using ssa apply manifests (#611)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-09-06 02:18:55 +00:00
Jian Qiu
fc3ee21f54 Upgrade mqtt deps (#607)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-08-30 09:21:32 +00:00
Zhiwei Yin
7946f87945 support set imagepullsecret credential in helm chart and run e2e using helm chart (#605)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-08-29 12:32:43 +00:00
Qing Hao
dfa835d674 addon: add support for multiple GVK (#585)
* addon: add support for multiple GVK

adds test cases

updates mergeAddonConfig function to match new multi same-gvk configs

Signed-off-by: Joao Marcal <jmarcal@redhat.com>

* add more UT

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

* modify code

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

---------

Signed-off-by: Joao Marcal <jmarcal@redhat.com>
Signed-off-by: haoqing0110 <qhao@redhat.com>
Co-authored-by: Joao Marcal <jmarcal@redhat.com>
2024-08-13 01:52:39 +00:00
Jian Qiu
c9161cef09 Set default user-agent for work to work-agent (#588)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-08-06 07:50:11 +00:00
xuezhao
6c4292b1bc Refactor tester to e2e framework. (#565)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-07-24 01:31:58 +00:00
Jian Qiu
8c1d286b11 Refactor registration (#535)
* Refactor registration

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

* Fix integration test

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

* Refactor cert controller to secret controller

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

* Update health check func

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

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-07-17 14:14:11 +00:00
xuezhao
9a7efaed5d Using default timeout in hosted cases. (#566)
Signed-off-by: GitHub <noreply@github.com>
2024-07-11 03:11:09 +00:00
xuezhao
4b77db89c5 Explicitly name and use UNIVERSAL klusterlet/managedcluster. (#556)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-07-09 09:54:21 +00:00
xuezhao
da8d81a22c Refactor: timeout and interval usage in e2e (#563)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-07-09 01:33:50 +00:00
xuezhao
5617fec2f7 fix: put the update into a eventually to avoid flaky error. (#557)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-07-08 06:35:36 +00:00
xuezhao
990a639661 Fix: addon manager flaky error. (#558)
Signed-off-by: GitHub <noreply@github.com>
2024-07-08 01:52:19 +00:00
Jian Qiu
2582ad922d Update deps to 1.30 (#546)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-07-02 14:04:15 +00:00
xuezhao
5a747e8a2c Operator supports MultipleHubs. (#524)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-06-27 07:53:07 +00:00
Yang Le
a14450aa93 🌱 make additional secret data always sensitive (#525)
Signed-off-by: Yang Le <yangle@redhat.com>
2024-06-26 02:32:52 +00:00
Jian Qiu
b6058f1126 Update deps of api and library to 0.14.0 (#532)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-06-21 07:25:59 +00:00
xuezhao
21f339999c Refactor e2e commands. (#534)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-06-20 01:55:27 +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
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
Wei Liu
e2a7b9e78b upgrade sdk-go (#528)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-06-18 05:48:45 +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
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
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