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

delete pkg/hubble/ipcache and GetIPIdentity func from ipcache #11652

Merged
merged 1 commit into from May 25, 2020

Conversation

rolinh
Copy link
Member

@rolinh rolinh commented May 22, 2020

This commit updates hubble parser's IPGetter interface so that the
interface methods match existing ones in cilium's ipcache package that
provide information that is necessary for hubble's parsers.

As a consequence, the GetIPIdentity method can be removed from cilium's
ipcache. This method was added when hubble was initially embedded into
cilium and never made its way to a cilium release.

Another consequence of this change is that package pkg/hubble/ipcache
can be removed entirely. It was a remnant from the time when hubble was
running as standalone and had to replicate its own IP cache from
cilium's.

This commit does not make functional changes.

@rolinh rolinh added kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact. sig/hubble Impacts hubble server or relay labels May 22, 2020
@rolinh rolinh requested a review from a team May 22, 2020 14:29
@rolinh rolinh requested a review from a team as a code owner May 22, 2020 14:29
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 May 22, 2020
@rolinh rolinh added this to In progress (1.8) in Hubble server May 22, 2020
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

As discussed offline, I don't love the ip string types, but this is what IPCache currently provides.

@coveralls
Copy link

coveralls commented May 22, 2020

Coverage Status

Coverage decreased (-0.003%) to 36.893% when pulling fafab22 on pr/rolinh/hubble-delete-ipcache into 5a8501a on master.

This commit updates hubble parser's IPGetter interface so that the
interface methods match existing ones in cilium's ipcache package that
provide information that is necessary for hubble's parsers.

As a consequence, the GetIPIdentity method can be removed from cilium's
ipcache. This method was added when hubble was initially embedded into
cilium and never made its way to a cilium release.

Another consequence of this change is that package pkg/hubble/ipcache
can be removed entirely. It was a remnant from the time when hubble was
running as standalone and had to replicate its own IP cache from
cilium's.

This commit does not make functional changes.

Signed-off-by: Robin Hahling <robin.hahling@gw-computing.net>
@rolinh rolinh force-pushed the pr/rolinh/hubble-delete-ipcache branch from 7484c62 to fafab22 Compare May 25, 2020 07:20
@rolinh
Copy link
Member Author

rolinh commented May 25, 2020

test-me-please

@aanm aanm merged commit c9b9455 into master May 25, 2020
1.8.0 automation moved this from In progress to Merged May 25, 2020
Hubble server automation moved this from In progress (1.8) to Done May 25, 2020
@aanm aanm deleted the pr/rolinh/hubble-delete-ipcache branch May 25, 2020 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact. sig/hubble Impacts hubble server or relay
Projects
No open projects
1.8.0
  
Merged
Hubble server
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

6 participants