-
Notifications
You must be signed in to change notification settings - Fork 208
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
check: make (Service)Address() return an IP address #1651
Conversation
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
bf2196f
to
01210be
Compare
01210be
to
f9aa4de
Compare
f9aa4de
to
f25d7bd
Compare
f25d7bd
to
8c0bca1
Compare
change the Address method to return an IP address when available (i.e. when ClusterIP is not empty, which happens in case of headless services) instead of just returning the service name. In case the IP family is set to any, this method will keep returning the service name. Signed-off-by: Gilberto Bertin <[email protected]>
8c0bca1
to
ae9cee1
Compare
Always returning an IP (beside the
as it's not clear yet what's causing that, and I'm not able to reproduce this locally, for the meantime I switched the first condition to: if s.Service.Spec.ClusterIP == "" || family == IPFamilyAny {
return s.Service.Name
} so that we keep the current behavior of returning the service name when the IP family is set to any |
change the Address method to return an IP address when available (i.e. when ClusterIP is not empty, which happens in case of headless services) instead of just returning the service name.
towards: cilium/cilium#24151