add weights field for HealthService#1288
Conversation
|
maybe the test code need change. |
pierresouchay
left a comment
There was a problem hiding this comment.
LGTM, thank you for the support of weights
|
Can I ask if the PR has been tested and merged yet? |
|
@phamtai97 Yes. But the test code need compare expected values, so I have to change test code to add See here please: fengxuway@20512ea?diff=split |
|
I'm going to merge this for 0.25.0 but I'd like the field to be a value, not a pointer. I can make this change post merge but if you get a chance to update the PR, please do. That is change Thanks. |
|
As a side note, if the value is not set (aka not present on Consul side (ie: à Consul agent pre version 1.0.7 IIRC), the value is expected to be passing:1 and warning:1 (that's the value on Consul side when, for instance DNS retrieve it) |
|
The conflict is due to formatting. Between that, a new test that was added and needs the Weights and changing it from a pointer to a value... Unless you speak up @fengxuway, I'm just going to pull this down, fix it up and merge from there. I'll be sure to keep attribution on the changes. |
|
Merged via local checkout. |
resolve Issue #1287