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 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
Qing Hao
2f4ff9f424
🌱 add metrics for placement ( #297 )
...
* add metrics for placement
Signed-off-by: haoqing0110 <qhao@redhat.com >
* record plugin metrics in schedule()
Signed-off-by: haoqing0110 <qhao@redhat.com >
* add plugin type
Signed-off-by: haoqing0110 <qhao@redhat.com >
---------
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-10-26 06:44:59 +00:00
Nitish Chauhan
36e389cc07
adding contextual logging in placement component ( #254 )
...
Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com >
2023-08-24 21:19:17 -04:00
Qing Hao
a2b3c6d54c
revert placement decision start index from 1 to keep backward compatibility ( #253 )
...
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-08-23 03:45:27 -02:30
Qing Hao
4f3749970e
fix the placement decision clusters have random order issue ( #235 )
...
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-07-27 03:00:42 +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
Qing Hao
5c03624912
divide pre-defined decision groups by length ( #227 )
...
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-07-21 10:34:21 +02:00
Qing Hao
66498342dd
🌱 placement support decision groups ( #200 )
...
* placement support decision groups
Signed-off-by: haoqing0110 <qhao@redhat.com >
* update decision generation flow
Signed-off-by: haoqing0110 <qhao@redhat.com >
* fix label update issue
Signed-off-by: haoqing0110 <qhao@redhat.com >
* update decision group logic
Signed-off-by: haoqing0110 <qhao@redhat.com >
* update placement and decision with patcher
Signed-off-by: haoqing0110 <qhao@redhat.com >
* modify code based on review comments
Signed-off-by: haoqing0110 <qhao@redhat.com >
---------
Signed-off-by: haoqing0110 <qhao@redhat.com >
2023-07-10 09:46:23 -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 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
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
xuezhaojun
ad38b9465f
Relocate pkgs. ( #146 )
...
Signed-off-by: xuezhaojun <zxue@redhat.com >
2023-05-29 07:20:55 -04:00