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

Fix service port lookup #385

Merged
merged 1 commit into from
Sep 12, 2019
Merged

Fix service port lookup #385

merged 1 commit into from
Sep 12, 2019

Conversation

jcmoraisjr
Copy link
Owner

Use the backend port to find the correct ServicePort object from the service. The ServicePort name is used to match the Endpoint port name. Finally, the endpoint port number is the right one. ServicePort name is optional only if there is only one port, so if ServicePort.Name == "", the Endpoint port match, otherwise the svcPort and epPort names should match.

Should merge too v0.8

Fix #383

Use the backend port to find the correct ServicePort object from the service. The ServicePort name is used to match the Endpoint port name. Finally, the endpoint port number is the right one. ServicePort name is optional only if there is only one port, so if ServicePort.Name == "", the Endpoint port match, otherwise the svcPort and epPort names should match.
@jcmoraisjr jcmoraisjr merged commit bcc7f49 into master Sep 12, 2019
@jcmoraisjr jcmoraisjr deleted the jm-svc-port-lookup branch September 13, 2019 09:44
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.

[v0.8-beta.1] Not finding backend pods
1 participant