Skip to content

project: UDP NodeBalancers #751

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

project: UDP NodeBalancers #751

wants to merge 4 commits into from

Conversation

ezilber-akamai
Copy link
Contributor

📝 Description

This pull request merges the NodeBalancer UDP project into this project's main branch to be included in the next release.

✔️ How to Test

The following test steps assume you have pulled down this PR locally and are using an account with access to UDP NodeBalancers.

Unit Tests

make test-unit

Integration Tests

make fixtures TEST_ARGS="-run TestNodeBalancer"

lgarber-akamai and others added 2 commits January 13, 2025 14:29
* WIP

* Finish up

* Add integration tests

* Add NB unit test

* Add config unit test

* Replace TODO

* Render fixtures

* Re-render unrelated fixture
@ezilber-akamai ezilber-akamai requested a review from a team as a code owner May 15, 2025 18:46
@ezilber-akamai ezilber-akamai requested review from jriddle-linode and lgarber-akamai and removed request for a team May 15, 2025 18:46
@ezilber-akamai ezilber-akamai added do-not-merge PRs that should not be merged until the commented issue is resolved project for new projects in the changelog. labels May 15, 2025
@ezilber-akamai ezilber-akamai force-pushed the proj/nb-udp branch 2 times, most recently from b8a79cc to 3c8e57c Compare May 15, 2025 19:40
Copy link
Collaborator

@jriddle-linode jriddle-linode left a comment

Choose a reason for hiding this comment

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

LGTM tests are passing

@@ -160,6 +168,7 @@ func (i NodeBalancerConfig) GetCreateOptions() NodeBalancerConfigCreateOptions {
CheckPath: i.CheckPath,
CheckBody: i.CheckBody,
CheckPassive: copyBool(&i.CheckPassive),
UDPCheckPort: &i.UDPCheckPort,
Copy link
Contributor

Choose a reason for hiding this comment

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

We should set it only if protocol is UDP. This field is not optional in NodeBalancerConfig, so if you don't set it there (ex for TCP protocol), it gets default 0. If then someone does GetCreateOptions() for that NodeBalancerConfig, returned NodeBalancerConfigCreateOptions has UDPCheckPort assigned value 0 and that will make calls to fail as udp_check_port has to be within 1 to 65535.

@@ -181,6 +190,7 @@ func (i NodeBalancerConfig) GetUpdateOptions() NodeBalancerConfigUpdateOptions {
CheckBody: i.CheckBody,
CheckPassive: copyBool(&i.CheckPassive),
CheckTimeout: i.CheckTimeout,
UDPCheckPort: copyInt(&i.UDPCheckPort),
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, set only for UDP protocol

@@ -202,6 +212,7 @@ func (i NodeBalancerConfig) GetRebuildOptions() NodeBalancerConfigRebuildOptions
CheckPath: i.CheckPath,
CheckBody: i.CheckBody,
CheckPassive: copyBool(&i.CheckPassive),
UDPCheckPort: copyInt(&i.UDPCheckPort),
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, set only for UDP protocol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge PRs that should not be merged until the commented issue is resolved project for new projects in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants