Fix separate TCP and UDP listeners on the same port for… by 210g · Pull Request #533 · oracle/oci-cloud-controller-manager
Navigation Menu
{{ message }}
oracle / oci-cloud-controller-manager Public
- Notifications You must be signed in to change notification settings
- Fork 102
Open
Fix separate TCP and UDP listeners on the same port for…#533
210g wants to merge 1 commit intooracle:masterfrom
Fix separate TCP and UDP listeners on the same port for…#533
210g wants to merge 1 commit intooracle:masterfrom
Conversation
Copy link Copy Markdown
210g
commented
Mar 31, 2026
210g
commented
Ref: #532
This PR fixes the issue by conditionally separating the listeners:
- If NodePorts are different: It creates separate Listeners and BackendSets (e.g., TCP-80 and UDP-80) to route traffic accurately to their respective NodePorts.
- If NodePorts are the same (or omitted/0): It retains the existing behavior and creates a single TCP_AND_UDP Listener for backward compatibility and resource optimization.
- To ensure backward compatibility, the logic compares the NodePort of the ServicePorts. The existing ProtocolTypeMixed logic is bypassed only when the NodePorts explicitly differ.
- Minor optimizations with string processing
Related unit tests passed.
… NLB Signed-off-by: Minyoung Oh <minyoung.oh23@gmail.com>
oracle-contributor-agreement
bot
added
the
OCA Verified
label
Mar 31, 2026This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment