Skip to content
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

🐛 revert placement decision start index from 1 to keep backward compatibility #253

Conversation

haoqing0110
Copy link
Member

Summary

Related issue(s)

Fixes #

@openshift-ci openshift-ci bot requested review from elgnay and jnpacker August 22, 2023 03:10
@haoqing0110
Copy link
Member Author

/hold

@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (4227c8f) 60.37% compared to head (e9e702a) 60.38%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #253   +/-   ##
=======================================
  Coverage   60.37%   60.38%           
=======================================
  Files         132      132           
  Lines       13658    13660    +2     
=======================================
+ Hits         8246     8248    +2     
+ Misses       4654     4653    -1     
- Partials      758      759    +1     
Flag Coverage Δ
unit 60.38% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...nt/controllers/scheduling/scheduling_controller.go 67.28% <100.00%> (+0.12%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@haoqing0110 haoqing0110 force-pushed the br_placement-decision branch from 5ed14c4 to a8cdcee Compare August 22, 2023 05:41
@openshift-ci openshift-ci bot removed the approved label Aug 22, 2023
@haoqing0110 haoqing0110 force-pushed the br_placement-decision branch from a8cdcee to aa9e977 Compare August 22, 2023 06:27
@haoqing0110
Copy link
Member Author

/assign @qiujian16

@@ -465,7 +465,8 @@ func (c *schedulingController) generatePlacementDecisionsAndStatus(

// generate placement decision for each decision group
for decisionGroupIndex, decisionGroup := range decisionGroups {
// generate placement decisions and status, group and placement name index starts from 0.
// generate placement decisions and status, group name index starts from 0, placement name index
// starts from 1 to keep backward compatibility.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a todo here, we should be consistent with index or using a random generate name when version bumps

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

…bility

Signed-off-by: haoqing0110 <qhao@redhat.com>
@haoqing0110 haoqing0110 force-pushed the br_placement-decision branch from aa9e977 to e9e702a Compare August 23, 2023 02:38
@qiujian16
Copy link
Member

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm label Aug 23, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 23, 2023

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@haoqing0110
Copy link
Member Author

/unhold

@openshift-merge-robot openshift-merge-robot merged commit a2b3c6d into open-cluster-management-io:main Aug 23, 2023
@haoqing0110 haoqing0110 deleted the br_placement-decision branch August 23, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants