Commit Graph

218 Commits

Author SHA1 Message Date
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 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
Suvaansh
9eb8131bea Create registration option by driver type after bootstrap (#744)
Signed-off-by: suvaanshkumar <suvaanshkumar@gmail.com>
Co-authored-by: Jian Qiu <jqiu@redhat.com>
2024-12-06 02:05:23 +00:00
jaswalkiranavtar
a138a547f5 Adding second group for aws auth flow (#735)
Signed-off-by: Gaurav Jaswal <jaswalkiranavtar@gmail.com>
2024-12-05 06:36:18 +00:00
Jian Zhu
80935909c0 🐛 Only bind the agent role for the addon group (#721)
* Only bind the agent role for the addon group

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

* Update addon rolebinding

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

* Tigger registration reconcile after start

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

* Address code review comments

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

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2024-12-03 02:18:34 +00:00
Jian Zhu
41a01b1da0 Change kubecofnig secret creation time to non pointer (#731)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-12-02 05:26:18 +00:00
Jian Zhu
6e367a2b26 🌱 Move index func from addon framework to ocm (#728)
* Move index func from addon framework to ocm

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

* Address code review comments

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

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2024-12-02 01:40:46 +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
Jian Qiu
627a16ddfc Fix: Should use metadata name queue key func for addon informer (#722)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-11-25 07:50:56 +00:00
Wei Liu
9ab61dfae8 update sdk-go to fix unstable test (#715)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-11-25 04:24:44 +00:00
Yang Le
2f9dcc2ea5 🌱 support CA file in the bootstrap hub kubeconfig (#710)
Signed-off-by: Yang Le <yangle@redhat.com>
2024-11-21 09:06:35 +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 Zhu
109bd9456e Record the external kubeconfig creation timestamp (#700)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-11-14 01:35:31 +00:00
Suvaansh
67b4f1a354 Add AWS IAM support (#677)
* Adding AWS IAM authentication support

Signed-off-by: EmilyL <70486866+dtclxy64@users.noreply.github.com>

* Remove the bootstrapKubeconfigEventHandler field that's no longer used from the NewSpokeAgentConfig function based on code review comments.

Signed-off-by: Suvaansh <34331549+suvaanshkumar@users.noreply.github.com>

* Add a comment on what the IsEksArnWellFormed function does and an example EKS ARN.

Signed-off-by: Suvaansh <34331549+suvaanshkumar@users.noreply.github.com>
Signed-off-by: Emily Li <70486866+dtclxy64@users.noreply.github.com>

---------

Signed-off-by: EmilyL <70486866+dtclxy64@users.noreply.github.com>
Signed-off-by: Suvaansh <34331549+suvaanshkumar@users.noreply.github.com>
Signed-off-by: Emily Li <70486866+dtclxy64@users.noreply.github.com>
Co-authored-by: EmilyL <70486866+dtclxy64@users.noreply.github.com>
2024-11-13 01:43:28 +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
Rokibul Hasan
e24937ff75 Fix issue with printing <nil> for error messages (#681)
Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
2024-10-31 09:02:13 +00:00
Wei Liu
d26db93494 Add auto approve anno for accepted cluster (#680)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2024-10-31 02:52:23 +00:00
Jian Qiu
fa98535693 🐛 Use context cancel func to trigger reselect (#658)
* Use context cancel func to trigger reselect

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

* Add test to improve coverage

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

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-10-29 02:06:13 +00:00
Rokibul Hasan
a0370e2e5d Remove ManagedClusterSet webhook registration part (#678)
Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
2024-10-28 13:43:44 +00:00
xuezhao
26f9e74ac9 Rename and relocate cluster related roles files. (#674)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-10-28 01:56:29 +00:00
Rokibul Hasan
e9245d46d7 🐛 Fix duplicate deployment names in klusterlet-agent availability message (#671)
* Fix duplicate deployment names in klusterlet-agent availability message

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

* Update

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

---------

Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
2024-10-28 01:53:47 +00:00
Rokibul Hasan
20a7b83c5c Register ManifestWorkReplicaSet webhook when feature is enabled (#673)
Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
2024-10-28 01:51:01 +00:00
Jian Qiu
900248f214 Return false when accept return error (#622)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-10-21 10:51:00 +00:00
Yang Le
9a47edcae0 🐛 handle the unknown status of the previously accepted cluster (#656)
Signed-off-by: Yang Le <yangle@redhat.com>
2024-10-21 02:33:13 +00:00
Jian Zhu
bc01437ad3 Ensure one cma is processed by one addon worker at the same time (#654)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-10-18 04:06:24 +00:00
Qing Hao
6d685221ca fix the mca override cma configs issues (#649)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2024-10-17 08:35:06 +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
Jian Zhu
abec12a6f9 Fix error message (#628)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-09-23 12:40:48 +00:00
Zhiwei Yin
77726223f2 fix the cluster name is digital (#621)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-09-19 02:15:42 +00:00
Jian Qiu
8678ede813 🐛 only read the first item when RawFeedbackJsonString is disabled (#613)
* only read the first item when RawFeedbackJsonString is disabled

This is to ensure the backward compatible when the feature gate
is disabled

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

* Add a test for backward compatible

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

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-09-09 13:34:01 +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
Zhiwei Yin
41c9196e54 fix token-secret format (#606)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-08-30 00:50:01 +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
Zhiwei Yin
567a9a4e18 fix issues in operator helm chart (#604)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-08-29 03:14:25 +00:00
Zhiwei Yin
0deb09b92d add createNamespace option to chart render (#603)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-08-28 07:17:18 +00:00
Jian Qiu
0536c757af 🌱 Move hub side csr code to csr driver (#580)
* Move hub side csr code to csr driver

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

* Add ut

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

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-08-19 06:32:07 +00:00
Zhiwei Yin
e137912551 return raw data of chart render results (#593)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-08-15 01:53:10 +00:00
Jian Zhu
3d8cb1e02e Ignore appliedmanifestwork crd not found error when checking managed cluster connectivity (#594)
Signed-off-by: zhujian <jiazhu@redhat.com>
2024-08-14 07:08: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
haowells
5623a4b2a2 add haowells to operator reviewers (#584)
Signed-off-by: haowells <haowells@gmail.com>
Co-authored-by: haolin <haolin@ebay.com>
2024-08-01 06:00:01 +00:00