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

synthesise k8s service network from service IPs #2779

Merged
merged 1 commit into from
Aug 1, 2017

Conversation

rade
Copy link
Member

@rade rade commented Jul 31, 2017

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.

@rade rade requested a review from 2opremio July 31, 2017 17:21
// 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.

a = a[:8]
b = b[:8]
}
for len(a) > 0 {

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@rade rade force-pushed the 2748-synthesise-service-network branch from 8a7370d to 12add72 Compare August 1, 2017 11:05
return &network
}

func commonIPv4PrefixLen(a, b net.IP) (cpl int) {

This comment was marked as abuse.

This comment was marked as abuse.

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.
@rade rade force-pushed the 2748-synthesise-service-network branch from 12add72 to 4dae7ed Compare August 1, 2017 11:18
@rade rade merged commit 1e38e78 into master Aug 1, 2017
@dlespiau dlespiau deleted the 2748-synthesise-service-network branch November 2, 2017 12:29
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.

2 participants