Skip to content

TPT-4760: Support VPC subnet IDs for NodeBalancer nodes - #898

Open
zliang-akamai wants to merge 1 commit into
devfrom
TPT-4760/nodebalancer-vpc-node-subnet-id
Open

zliang-akamai wants to merge 1 commit into
devfrom
TPT-4760/nodebalancer-vpc-node-subnet-id

Conversation

@zliang-akamai

Copy link
Copy Markdown
Member

📝 Description

Expose subnet_id for backend nodes configured through linode.cloud.nodebalancer and linode.cloud.nodebalancer_node, enabling VPC-backed nodes to be created. Update the module documentation and add unit and integration coverage for creation, subnet association, and idempotency.

✔️ How to Test

Unit tests

PYTHONPATH="$(cd ../../.. && pwd)" pytest -q tests/unit/modules/test_nodebalancer.py tests/unit/modules/test_nodebalancer_node.py

Integration test

make integration-test TEST_SUITE=nodebalancer_vpc

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@zliang-akamai zliang-akamai added the new-feature for new features in the changelog. label Oct 30, 2026
@zliang-akamai
zliang-akamai requested review from a team as code owners October 30, 2026 22:00
@zliang-akamai
zliang-akamai requested review from psnoch-akamai and yec-akamai and a balanced review from Copilot and removed request for a team October 30, 2026 22:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the addition of subnet_id support to NodeBalancer nodes.

No open issues 🎉

What changed in this PR

Adds subnet_id support to backend nodes in linode.cloud.nodebalancer and linode.cloud.nodebalancer_node, enabling creation of VPC-backed nodes.

Changes:

  • Exposes the optional integer parameter in both module specifications and documents its requirement for VPC nodes.
  • Adds unit coverage for argument validation and forwarding with and without a subnet ID.
  • Adds integration coverage for nested and standalone VPC nodes, subnet association on v4beta, idempotency, and resource cleanup.
File Description
tests/​unit/​modules/​test_nodebalancer.py Tests optional subnet validation and forwarding for nested nodes.
tests/​unit/​modules/​test_nodebalancer_node.py Tests optional subnet validation and forwarding for standalone nodes.
tests/​integration/​targets/​nodebalancer_vpc/​tasks/​main.yaml Exercises VPC node creation, association, idempotency, and cleanup.
plugins/​modules/​nodebalancer.py Adds subnet_id to nested node options.
plugins/​modules/​nodebalancer_node.py Adds subnet_id to standalone node options.
docs/​modules/​nodebalancer.md Documents the nested node subnet option.
docs/​modules/​nodebalancer_node.md Documents the standalone node subnet option.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature for new features in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants