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

Add support for NodeBalancers UDP #630

Open
wants to merge 5 commits into
base: proj/nb-udp
Choose a base branch
from

Conversation

lgarber-akamai
Copy link
Contributor

📝 Description

This pull request adds support for UDP NodeBalancer configs as well as the corresponding tests.

✔️ How to Test

The following test steps assume you have pulled down this PR locally.

Unit Testing

make testunit

Integration Testing

make ARGS="-run TestNodeBalancer" fixtures

@lgarber-akamai lgarber-akamai added the new-feature for new features in the changelog. label Nov 22, 2024
Comment on lines 4 to 10
"context"
"testing"

"github.com/jarcoal/httpmock"
"github.com/linode/linodego"
"github.com/stretchr/testify/assert"
"testing"
)
Copy link
Contributor Author

@lgarber-akamai lgarber-akamai Nov 22, 2024

Choose a reason for hiding this comment

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

These changes were made implicitly by gofumpt -l -w .

Comment on lines +2 to +23
"algorithm": "ring_hash",
"check": "http_body",
"check_attempts": 3,
"check_body": "it works",
"check_interval": 90,
"check_path": "/test",
"check_timeout": 10,
"cipher_suite": "recommended",
"id": 4567,
"nodebalancer_id": 1234,
"nodes_status": {
"down": 0,
"up": 4
},
"port": 1234,
"protocol": "udp",
"ssl_commonname": "www.example.com",
"ssl_fingerprint": "00:01:02:03:04:05:06:07:08:09:0A:0B:0C:0D:0E:0F:10:11:12:13",
"ssl_key": "<REDACTED>",
"stickiness": "source_ip",
"udp_check_port": 12345,
"udp_session_timeout": 10
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I still need to verify the exact response body for UDP configs, but this should suffice for now 🙂

@lgarber-akamai lgarber-akamai added the do-not-merge PRs that should not be merged until the commented issue is resolved label Nov 22, 2024
@lgarber-akamai lgarber-akamai marked this pull request as ready for review November 22, 2024 21:05
@lgarber-akamai lgarber-akamai requested a review from a team as a code owner November 22, 2024 21:05
@lgarber-akamai lgarber-akamai requested review from jriddle-linode and zliang-akamai and removed request for a team November 22, 2024 21:05
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 new-feature for new features in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant