Skip to content

Conversation

squeed
Copy link
Contributor

@squeed squeed commented Oct 22, 2024

Previously, when DNS proxy redirects were deleted, we would also clear the special DNS rule cache. (The rule cache is so we can serve DNS traffic while endpoints are being restored on agent restart). However, now that redirects can only be changed during regeneration, and we always set the DNS rules directly during regen, we no longer need this callback.

So, clean up the interfaces. While we're at it, pass the endpoint ID as needed instead of the full endpoint.

Previously, when DNS proxy redirects were deleted, we would also clear
the special DNS rule cache. (The rule cache is so we can serve DNS
traffic while endpoints are being restored on agent restart). However,
now that redirects can only be changed during regeneration, and we
always set the DNS rules directly during regen, we no longer need this
callback.

So, clean up the interfaces. While we're at it, pass the endpoint ID as
needed instead of the full endpoint.

Signed-off-by: Casey Callendrello <cdc@isovalent.com>
@squeed squeed added kind/cleanup This includes no functional changes. sig/policy Impacts whether traffic is allowed or denied based on user-defined policies. release-note/misc This PR makes changes that have no direct user impact. area/fqdn Affects the FQDN policies feature labels Oct 22, 2024
@squeed squeed requested review from a team as code owners October 22, 2024 20:02
@squeed squeed requested a review from jrajahalme October 22, 2024 20:02
@squeed
Copy link
Contributor Author

squeed commented Oct 23, 2024

/test

Copy link
Member

@jrajahalme jrajahalme left a comment

Choose a reason for hiding this comment

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

Nice to get rid of the callback!

@jrajahalme
Copy link
Member

/ci-gateway-api

@jrajahalme jrajahalme enabled auto-merge November 4, 2024 16:11
@jrajahalme jrajahalme added this pull request to the merge queue Nov 4, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 4, 2024
Merged via the queue into cilium:main with commit 2e0b0f2 Nov 4, 2024
74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/fqdn Affects the FQDN policies feature kind/cleanup This includes no functional changes. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact. sig/policy Impacts whether traffic is allowed or denied based on user-defined policies.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants