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
xuezhao
bb383e26c9
Add xuezhaojun in registration owners. ( #583 )
...
Signed-off-by: GitHub <noreply@github.com >
2024-08-01 05:32:30 +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
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
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
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
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 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
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
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
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
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
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
3a2250d974
Refactor NewUnstructured method ( #418 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2024-04-11 12:01:07 +00:00
Wei Liu
fd2d0eb16e
avoid cluster auto approve failed occasionally ( #388 )
...
Signed-off-by: Wei Liu <liuweixa@redhat.com >
2024-04-07 03:44:54 +00:00
Matt Prahl
2cd6a6fb99
Fix the valid client certificate check ( #378 )
...
The commit edef33de92 introduced
additional checks on the certificate subject. The issue is that the
order of the groups and organizational units are not consistent, so it
was causing the addon-framework to generate several CSRs with many
coming back as invalid.
This takes the approach of sorting the strings before doing the
comparison.
Signed-off-by: mprahl <mprahl@users.noreply.github.com >
2024-03-15 15:51:36 +00:00
xuezhao
edef33de92
Retrigger CSR when subject org and ou doesn't match. ( #377 )
...
Signed-off-by: GitHub <noreply@github.com >
2024-03-14 08:44:16 +00:00
Jian Qiu
6cfce8ce24
Revert apply func ( #353 )
...
this part dep on library-go so remove from
sdk-go
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2024-01-22 03:46:46 +00:00
Jian Qiu
bede3edd92
Switch to patcher in sdk-go ( #349 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2024-01-22 02:04:49 +00:00
Jian Qiu
1d42f4285e
Switch to sdk-go for helper functions ( #346 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2024-01-17 14:28:54 +00:00
xuezhaojun
9dc8f104cf
Update api dependencies and handle deprecated code. ( #333 )
...
Signed-off-by: xuezhaojun <zxue@redhat.com >
2023-12-20 10:21:48 +00:00
xuezhaojun
5884bc5c21
Add clock sync condition controller. ( #312 )
...
Signed-off-by: xuezhaojun <zxue@redhat.com >
2023-12-05 02:05:36 +00:00
Jian Qiu
f89d535ff3
skip namespace in resourceMeta for cluster scoped resource ( #324 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-11-29 07:31:31 +00:00
Zhiwei Yin
f003ed38a5
refactor gc controller ( #229 )
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2023-10-23 07:05:35 +00:00
Yang Le
9aaa1327fa
🐛 move the rebootstrap logic to registration agent ( #267 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-10-18 09:58:06 +00: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
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
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
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
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
xuezhaojun
142fd5b247
Add ClusterAnnotations support. ( #234 )
...
Signed-off-by: xuezhaojun <zxue@redhat.com >
2023-07-27 04:31:25 +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
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
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 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 Qiu
4ae644879a
🌱 Refactor cluster permission ( #193 )
...
* User lister in permission apply for cluster
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Reduce get call in registration
Signed-off-by: Jian Qiu <jqiu@redhat.com >
---------
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-06-26 11:31:40 +02:00
Jian Qiu
e344e26a5e
Use patcher in work ( #190 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-06-21 05:38:59 +02:00
Wei Liu
ecfb6c0888
merge the cluster capacity ( #184 )
...
Signed-off-by: Wei Liu <liuweixa@redhat.com >
2023-06-14 11:03:43 -04:00
Jian Qiu
db3b6fdb20
Add owner file for sub project ( #182 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-06-13 05:21:07 -04:00
Jian Zhu
d3d648283e
🌱 Configure the golangci lint ( #180 )
...
* 🌱 Configure the golangci lint
Signed-off-by: zhujian <jiazhu@redhat.com >
* 🌱 Fix lint issues
Signed-off-by: zhujian <jiazhu@redhat.com >
---------
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-06-13 03:51:48 -04:00
Wei Liu
b55881d6d2
expose the spoke informers ( #179 )
...
Signed-off-by: Wei Liu <liuweixa@redhat.com >
2023-06-12 23:10:15 -04:00
Jian Zhu
7332a585c0
🌱 add a verify rule for golang files import order ( #177 )
...
* 🌱 add a verify rule for golang files import order
This PR uses the [gci tool](https://github.com/daixiang0/gci ) to make all go files' import section with a specific order, it will organize import with group with order:
1. standard library modules
2. 3rd party modules
3. modules in OCM org, like the `open-cluster-management.io/api`
4. current project `open-cluster-management.io/ocm` modules
developers can use the `make fmt-imports` to format the import automatically and the `make verify-fmt-imports` to check for any violation.
Signed-off-by: zhujian <jiazhu@redhat.com >
* 🌱 format the go files import
Signed-off-by: zhujian <jiazhu@redhat.com >
---------
Signed-off-by: zhujian <jiazhu@redhat.com >
2023-06-12 10:23:04 -04:00