Skip to content

TPT add networking configuration for LKE clusters with VXLAN support - #1048

Merged
zliang-akamai merged 2 commits into
linode:mainfrom
vsilva-akamai:nitro-networking
Oct 15, 2026
Merged

zliang-akamai merged 2 commits into
linode:mainfrom
vsilva-akamai:nitro-networking

Conversation

@vsilva-akamai

Copy link
Copy Markdown
Contributor

📝 Description

What does this PR do and why is this change necessary?

  • Add v4beta-only Enterprise LKE networking options to LKEClusterCreateOptions.
  • Add networking response types and GetLKEClusterNetworking for retrieving the
    effective cluster networking configuration.
  • Add create and networking endpoint fixtures plus unit coverage for JSON
    serialization and response decoding.

✔️ How to Test

What are the steps to reproduce the issue or verify the changes?

Deploy the matching v4beta LKE API, CAPI CRDs/webhooks/controller, and APINext
route/schema support before releasing this client. Create an Enterprise LKE
cluster with the new networking options and call GetLKEClusterNetworking.
Verify the request contains the expected routing-mode and CIDR fields and that
the response decodes the effective networking configuration. Cover IPv4 VXLAN
and dual-stack VXLAN when the matching server release is available.

How do I run the relevant unit/integration tests?

go test ./test/unit

Copilot AI lite review requested due to automatic review settings September 21, 2026 20:06
@vsilva-akamai
vsilva-akamai requested review from a team as code owners September 21, 2026 20:06
@vsilva-akamai
vsilva-akamai requested review from mawilk90 and zliang-akamai and removed request for a team September 21, 2026 20:06

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.

Copilot review overview

🟡 Changes recommended

Add IPv6 dual-stack request fields and comprehensive request-body serialization assertions.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds v4beta Enterprise LKE networking configuration, VXLAN support, and a networking retrieval endpoint.

Changes:

  • Adds networking request/response types and create options.
  • Adds GetLKEClusterNetworking.
  • Adds fixtures and unit coverage.
File Summary
test/​unit/​lke_clusters_test.go Tests networking serialization and response decoding.
test/​unit/​fixtures/​lke_cluster_networking_get.json Adds networking endpoint response fixture.
test/​unit/​fixtures/​lke_cluster_create.json Adds networking create response data.
lke_clusters.go Adds networking models, options, and API endpoint.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lke_clusters.go
@vsilva-akamai vsilva-akamai changed the title feat: add networking configuration for LKE clusters with VXLAN support LKE-9994: add networking configuration for LKE clusters with VXLAN support Sep 21, 2026

@rpotla-akam rpotla-akam 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.

LGTM, please change the title appropriately :)

@mawilk90
mawilk90 requested review from a team and jriddle-linode and removed request for a team September 23, 2026 06:10
Comment thread lke_clusters.go Outdated
Comment on lines +49 to +55
type LKEClusterNetworkingOptions struct {
RoutingMode *LKEClusterRoutingMode `json:"routing_mode,omitzero"`
ClusterCIDRIPv4 *string `json:"cluster_cidr_ipv4,omitzero"`
NodeCIDRMaskSizeIPv4 *int `json:"node_cidr_mask_size_ipv4,omitzero"`
ServiceClusterIPRangeIPv4 *string `json:"service_cluster_ip_range_ipv4,omitzero"`
MaxPods *int `json:"max_pods,omitzero"`
NodeBalancerBackendPrefixLength *int `json:"nodebalancer_backend_prefix_length,omitzero"`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this only available for create LKE not update? If so can you name it as LKEClusterNetworkingCreateOptions

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's create only. Updated the type name.

@vsilva-akamai vsilva-akamai changed the title LKE-9994: add networking configuration for LKE clusters with VXLAN support TPT add networking configuration for LKE clusters with VXLAN support Oct 6, 2026

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

The additive client changes follow existing patterns, with only a non-blocking test improvement remaining.

1 open finding
1 resolved since last review

🧠 Review effort: Balanced

Comment thread test/unit/lke_clusters_test.go
@zliang-akamai
zliang-akamai merged commit e9522a7 into linode:main Oct 15, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution contributions from the community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants