381 Commits

Author SHA1 Message Date
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
xuezhao
bb383e26c9 Add xuezhaojun in registration owners. (#583)
Signed-off-by: GitHub <noreply@github.com>
2024-08-01 05:32:30 +00:00
DONG BEIQING
dc0717cb86 add dongbeiqing91 to operator approvers and reviewers (#582)
Signed-off-by: Dong Beiqing <350758787@qq.com>
2024-08-01 04:01:46 +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
Zhiwei Yin
bf0dc3fc66 add helm charts (#548)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-07-10 15:24:10 +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
xuezhao
fc9b2d96e1 Refactor client certificates. (#522)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-06-26 13:52:08 +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
xuezhao
6767167ff8 Fix: should use klog.FromContext instead of log.FromContext (#537)
Signed-off-by: GitHub <noreply@github.com>
2024-06-24 07:39:14 +00:00
Zhiwei Yin
84eaf5b3b8 refactor certrotation with sdk-go (#526)
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2024-06-24 07:19:27 +00:00
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