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

Clean up deprecated and unused IPCache APIs after FQDN transition to asynchronous APIs #29657

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented Dec 6, 2023

Clean up some deprecated/unused ipcache API following #29036 (fixing issue #28930). I've noticed these could be dropped while re-reviewing that PR after merge.

See commits for details.

@tklauser tklauser added kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact. kind/tech-debt Technical debt labels Dec 6, 2023
@tklauser tklauser requested a review from squeed December 6, 2023 11:25
@squeed
Copy link
Contributor

squeed commented Dec 6, 2023

Nice!

@tklauser tklauser force-pushed the pr/tklauser/ipcache-fqdn-async-review-follow-up branch 2 times, most recently from 8e5ab89 to eed791c Compare December 6, 2023 12:13
@tklauser tklauser marked this pull request as ready for review December 6, 2023 12:13
@tklauser tklauser requested review from a team as code owners December 6, 2023 12:13
@tklauser tklauser requested a review from nebril December 6, 2023 12:13
@tklauser
Copy link
Member Author

tklauser commented Dec 6, 2023

/test

Copy link
Contributor

@ti-mo ti-mo left a comment

Choose a reason for hiding this comment

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

I got pinged as tophat for pkg/ip/, could that one be assigned a codeowner?

tklauser added a commit that referenced this pull request Dec 6, 2023
Ref. #29657 (review)
Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser
Copy link
Member Author

tklauser commented Dec 6, 2023

I got pinged as tophat for pkg/ip/, could that one be assigned a codeowner?

Opened #29669 to assign to @cilium/sig-agent.

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.

Thanks! ♻️

Copy link
Member

@christarazi christarazi left a comment

Choose a reason for hiding this comment

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

🧹

pkg/ip/cidr.go Outdated Show resolved Hide resolved
Copy link
Contributor

@danehans danehans left a comment

Choose a reason for hiding this comment

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

Commit 6af2b78 ("ipcache/md: Make IPCache.metadata.remove()
generic") changed the method name.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
This method is deprecated. Since commit 507259f ("fqdn: move to
asynchronous ipcache APIs") its only user is in pkg/ipcache. Unexport it
so no new code will accidentally use it.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
The AllocateCIDRsForIPs and ReleaseCIDRIdentitiesByID methods are
deprecated API and not used anymore since commit 507259f ("fqdn:
move to asynchronous ipcache APIs").

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser force-pushed the pr/tklauser/ipcache-fqdn-async-review-follow-up branch from eed791c to 74c8f16 Compare December 6, 2023 20:15
@tklauser
Copy link
Member Author

tklauser commented Dec 6, 2023

/test

tklauser added a commit that referenced this pull request Dec 6, 2023
Ref. #29657 (review)
Signed-off-by: Tobias Klauser <tobias@cilium.io>
@joestringer joestringer removed the request for review from nebril December 6, 2023 21:11
@joestringer
Copy link
Member

Looks like Chris already covered review for ci-structure.

@joestringer joestringer added this pull request to the merge queue Dec 6, 2023
Merged via the queue into main with commit 56e9d80 Dec 6, 2023
205 checks passed
@joestringer joestringer deleted the pr/tklauser/ipcache-fqdn-async-review-follow-up branch December 6, 2023 21:21
aanm pushed a commit that referenced this pull request Dec 7, 2023
Ref. #29657 (review)
Signed-off-by: Tobias Klauser <tobias@cilium.io>
learnitall pushed a commit to learnitall/cilium that referenced this pull request Dec 9, 2023
Ref. cilium#29657 (review)
Signed-off-by: Tobias Klauser <tobias@cilium.io>
pjablonski123 pushed a commit to pjablonski123/cilium that referenced this pull request Dec 15, 2023
Ref. cilium#29657 (review)
Signed-off-by: Tobias Klauser <tobias@cilium.io>
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. kind/tech-debt Technical debt release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants