-
Notifications
You must be signed in to change notification settings - Fork 722
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
placement: add rule definitions #1834
Conversation
Signed-off-by: disksing <i@disksing.com>
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.
rest LGTM
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Codecov Report
@@ Coverage Diff @@
## master #1834 +/- ##
==========================================
- Coverage 78.1% 78.05% -0.06%
==========================================
Files 168 169 +1
Lines 17019 16975 -44
==========================================
- Hits 13293 13249 -44
- Misses 2644 2653 +9
+ Partials 1082 1073 -9
Continue to review full report at Codecov.
|
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.
the rest LGTM
Signed-off-by: disksing <i@disksing.com> Co-Authored-By: lhy1024 <admin@liudos.us>
// applying rules (apply means schedule regions to match selected rules), the | ||
// apply order is defined by the tuple [GroupID, Index, ID]. | ||
type Rule struct { | ||
GroupID string `json:"group_id"` // mark the source that add the rule |
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.
BTW, I think it's better to unify the style of it in the future. We have both snake_case
and kebab-case
in our repo.
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.
em, so are you suggesting using kebab style?
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.
Maybe we can decide later, now both styles are used commonly.
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.
Of course.
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.
LGTM.
/run-all-tests |
Signed-off-by: disksing i@disksing.com
What problem does this PR solve?
Add definitions for placement rules feature.
What is changed and how it works?
cannot work now.
Check List
Tests