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

Consider ServiceEntry weight in EDS #14616

Merged
merged 2 commits into from
Jun 18, 2019

Conversation

howardjohn
Copy link
Member

@howardjohn howardjohn commented Jun 6, 2019

ServiceEntry can specify a weight. When using DNS resolution (CDS) this
will be considered, but it was ignored for EDS.

Fixes #14466

ServiceEntry can specify a weight. When using DNS resolution (CDS) this
will be considered, but it was ignored for EDS.
addr := util.GetNetworkEndpointAddress(e)

epWeight := e.LbWeight
Copy link
Member Author

Choose a reason for hiding this comment

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

we may want to clean up this code duplication in the future, it makes it easy to make a mistake when making a change like ths

locLbEps.LoadBalancingWeight = &types.UInt32Value{
Value: uint32(len(locLbEps.LbEndpoints)),
Value: uint32(weight),
Copy link
Contributor

Choose a reason for hiding this comment

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

unnecessary conversion (from unconvert)

@istio-testing
Copy link
Collaborator

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
prow/integ-pilot-k8s-presubmit-tests.sh e0f9fb7 link /test integ-pilot-k8s-presubmit-tests-master
prow/integ-security-k8s-presubmit-tests.sh e0f9fb7 link /test integ-security-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn
Copy link
Member Author

/assign @hzxuzhonghu
/assign @liamawhite

Copy link
Member

@rshriram rshriram left a comment

Choose a reason for hiding this comment

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

/lgtm

@istio-testing
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: howardjohn, rshriram

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

@istio-testing istio-testing merged commit 2019cfc into istio:master Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

STATIC ServiceEntry do not take endpoint weight into account
7 participants