Jian Qiu
33310619d9
🌱 use SDK basecontroller for better logging. ( #1269 )
...
* Use basecontroller in sdk-go instead for better logging
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Rename to fakeSyncContext
Signed-off-by: Jian Qiu <jqiu@redhat.com >
---------
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2025-12-01 03:07:02 +00:00
Jian Qiu
5528aff6d3
🌱 Add contextual logging for work agent ( #1242 )
...
* Add contextual logging for work agent
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 >
2025-11-07 05:28:13 +00:00
Jian Zhu
fb5ba3acaf
🐛 Use syncmap for the resource cache ( #1023 )
...
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1m33s
Post / coverage (push) Failing after 32m30s
Post / images (amd64) (push) Failing after 8m6s
Post / images (arm64) (push) Failing after 7m35s
Post / image manifest (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Close stale issues and PRs / stale (push) Successful in 43s
* Use syncmap for the resource cache
Signed-off-by: zhujian <jiazhu@redhat.com >
* update unit tests
Signed-off-by: zhujian <jiazhu@redhat.com >
* fix unit test
Signed-off-by: zhujian <jiazhu@redhat.com >
* use sync.map directly
Signed-off-by: zhujian <jiazhu@redhat.com >
---------
Signed-off-by: zhujian <jiazhu@redhat.com >
2025-06-05 01:58:40 +00:00
Wei Liu
73150dea19
reduce unnecessary log ( #890 )
...
Scorecard supply-chain security / Scorecard analysis (push) Failing after 4m14s
Post / images (amd64) (push) Failing after 6m28s
Post / images (arm64) (push) Failing after 5m18s
Post / image manifest (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Post / coverage (push) Failing after 25m50s
Close stale issues and PRs / stale (push) Successful in 7s
Signed-off-by: Wei Liu <liuweixa@redhat.com >
2025-03-14 01:19:08 +00:00
Jian Qiu
741bf1c60f
Apply ownerref eventhough other field is ignored ( #847 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2025-02-25 02:16:45 +00:00
Jian Qiu
11896ccda1
Fix the issue that ownerref is not set with ignorefields ( #794 )
...
Scorecard supply-chain security / Scorecard analysis (push) Failing after 45s
Post / images (amd64) (push) Failing after 5m38s
Post / images (arm64) (push) Failing after 5m35s
Post / image manifest (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Post / coverage (push) Failing after 26m35s
Close stale issues and PRs / stale (push) Successful in 25s
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2025-01-10 03:19:59 +00:00
Jian Qiu
2397c4e911
Add cache for applyUnstructured ( #769 )
...
Scorecard supply-chain security / Scorecard analysis (push) Failing after 59s
Post / images (amd64) (push) Failing after 14m29s
Post / coverage (push) Failing after 26m17s
Post / images (arm64) (push) Failing after 6m52s
Post / image manifest (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Close stale issues and PRs / stale (push) Successful in 39s
This could reduce the number of calls to the spoke cluster
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2025-01-08 15:46:53 +00:00
Jian Qiu
037aa3ccfa
Ignore field should not be honored when creating the resource ( #784 )
...
Scorecard supply-chain security / Scorecard analysis (push) Failing after 12m44s
Post / images (amd64) (push) Failing after 8m35s
Post / coverage (push) Failing after 26m36s
Post / images (arm64) (push) Failing after 9m10s
Post / image manifest (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Close stale issues and PRs / stale (push) Successful in 30s
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2025-01-03 06:09:48 +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
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
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
9b36e1102d
Readonly strategy ( #494 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2024-06-07 07:39:59 +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
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
fb347bd08e
Use apply instead of patch in ssa ( #240 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-08-01 10:35:49 +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 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
Jian Qiu
72d87a2ea5
Refactor testing ( #161 )
...
* Move common testing fixture to a common location
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Add common pkg
Signed-off-by: Jian Qiu <jqiu@redhat.com >
---------
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-06-04 22:47:08 -04:00
xuezhaojun
ad38b9465f
Relocate pkgs. ( #146 )
...
Signed-off-by: xuezhaojun <zxue@redhat.com >
2023-05-29 07:20:55 -04:00