-
Notifications
You must be signed in to change notification settings - Fork 712
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
synthesise k8s service network from service IPs #2779
Conversation
// https://github.com/kubernetes/kubernetes/issues/25533), so instead | ||
// we synthesise it by computing the smallest network that contains | ||
// all service IPs. That network may be smaller than the actual range | ||
// but that is ok, since in the end all we care about is that it |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
report/networks.go
Outdated
a = a[:8] | ||
b = b[:8] | ||
} | ||
for len(a) > 0 { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
8a7370d
to
12add72
Compare
report/networks.go
Outdated
return &network | ||
} | ||
|
||
func commonIPv4PrefixLen(a, b net.IP) (cpl int) { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This prevents cluttering host.LocalNetworks with lots of /32 addresses. These were unsightly and rather distracting in the UI. They also bloated the report and slowed down server-side rendering. Fixes #2748.
12add72
to
4dae7ed
Compare
This prevents cluttering host.LocalNetworks with lots of /32 addresses. These were unsightly and rather distracting in the UI. They also bloated the report and slowed down server-side rendering.
Fixes #2748.