-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌱 add metrics for placement #297
🌱 add metrics for placement #297
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #297 +/- ##
==========================================
+ Coverage 61.39% 61.47% +0.07%
==========================================
Files 131 132 +1
Lines 13782 13844 +62
==========================================
+ Hits 8461 8510 +49
- Misses 4560 4570 +10
- Partials 761 764 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
/assign @qiujian16 @elgnay plz help review the sample metrics and code, will add more testing code. |
7571c9f
to
0315ab3
Compare
0315ab3
to
0373ff4
Compare
Signed-off-by: haoqing0110 <qhao@redhat.com>
0373ff4
to
daf7aa1
Compare
@@ -46,6 +49,13 @@ func (s *Steady) Description() string { | |||
|
|||
func (s *Steady) Score( | |||
ctx context.Context, placement *clusterapiv1beta1.Placement, clusters []*clusterapiv1.ManagedCluster) (plugins.PluginScoreResult, *framework.Status) { | |||
startTime := time.Now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this is the common thing, could we move this to the scheduler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, moved to scheduler.
Signed-off-by: haoqing0110 <qhao@redhat.com>
17fe6c8
to
64bfc2b
Compare
Signed-off-by: haoqing0110 <qhao@redhat.com>
64bfc2b
to
ed9ed5e
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: haoqing0110, qiujian16 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
2f4ff9f
into
open-cluster-management-io:main
) * use crd manager to update clean crds Signed-off-by: Jian Qiu <jqiu@redhat.com> * Update tests Signed-off-by: Jian Qiu <jqiu@redhat.com> * Rebase crd manager Signed-off-by: Jian Qiu <jqiu@redhat.com> * build client builder to make code clearer Signed-off-by: Jian Qiu <jqiu@redhat.com> * Add ut for crdmanager Signed-off-by: Jian Qiu <jqiu@redhat.com> * Compare crd spec when update Signed-off-by: Jian Qiu <jqiu@redhat.com> Signed-off-by: Jian Qiu <jqiu@redhat.com>
Signed-off-by: ldpliu <daliu@redhat.com>
Summary
Related issue(s)
Ref: open-cluster-management-io/placement#107
output