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
Fix minor bug where the previous Cilium proxy port was not reused #27634
Fix minor bug where the previous Cilium proxy port was not reused #27634
Conversation
cc @mhofstetter |
42c4208
to
e93256f
Compare
/test |
Import cycle errors, back to draft. |
e93256f
to
0697409
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one minor comment otherwise looks good! Good catch!
7b09fc5
to
a53b393
Compare
/test |
a53b393
to
b302031
Compare
/test |
@jrajahalme ping! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will need to retain the old forms for the upgrade case.
In the upcoming commits, the DNS proxy code and the datapath iptables code need to share a few variables. This commit is necessary to prevent an import cycle. Signed-off-by: Chris Tarazi <chris@isovalent.com>
This will be useful for the upcoming commit to use in the datapath / iptables packages for extracting shared state from iptables rules related to the DNS proxy. Signed-off-by: Chris Tarazi <chris@isovalent.com>
b302031
to
1cdfd1d
Compare
In a previous change [1], the bind address for the proxy changed from 0.0.0.0 to localhost. This broke restoring the old proxy port and caused Cilium to always allocate a new proxy port. Fix it by changing the regex string to include the new bind address as well as the previously used "0.0.0.0" and "::", for backwards-compatibility reasons on upgrade. Found by code inspection. [1]: cilium#25309 Fixes: 5304088 ("dnsproxy: bind dns proxy to localhost only") Fixes: cilium#25309 Signed-off-by: Chris Tarazi <chris@isovalent.com>
1cdfd1d
to
1a7d8d8
Compare
/test |
There are quite a few conflicts against v1.14. Most look trivial, but there are a few that look more complicated. I'm marking this |
Validated by doing manual testing of restarting Cilium and observing that it picks up the previous proxy port.
Last commit for convenience: