Skip to content

Add SubnetPool controller#844

Open
winiciusallan wants to merge 4 commits into
k-orc:mainfrom
winiciusallan:subnet-pool-controller
Open

Add SubnetPool controller#844
winiciusallan wants to merge 4 commits into
k-orc:mainfrom
winiciusallan:subnet-pool-controller

Conversation

@winiciusallan

Copy link
Copy Markdown
Member

This PR introduces the SubnetPool controller, which delegates the manage of subnet addresses allocation to Neutron.

Notes:

  • I decide to not implement the DefaultQuota, because we can't unset it, neither create it as 0.
  • Also I thought reasonable to keep the <Min|Max>PrefixLength required in the API, because we can't unset them when updating. Another possibility is to keep them immutable.

Closes #393

@github-actions github-actions Bot added the semver:major Breaking change label Jul 8, 2026
Comment thread api/v1alpha1/subnetpool_types.go

@dlaw4608 dlaw4608 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.

Thanks for the PR @winiciusallan ran through the e2e tests all work locally, overall the controller looks really good, only have the minor question regarding the mutability of the shared field

$ go run ./cmd/scaffold-controller -interactive=false \
    -gophercloud-client=NewNetworkV2 \
    -kind SubnetPool \
    -gophercloud-module=github.com/gophercloud/gophercloud/v2/openstack/networking/v2/extensions/subnetpools \
    -import-dependency Project \
    -import-dependency AddressScope \
    -optional-create-dependency Project \
    -optional-create-dependency AddressScope
@winiciusallan winiciusallan force-pushed the subnet-pool-controller branch from 97fd880 to 64d0da4 Compare July 9, 2026 18:25
@winiciusallan winiciusallan force-pushed the subnet-pool-controller branch from 64d0da4 to 8923c5f Compare July 11, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:major Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable (IPv6) Subnet Allocation with AddressScope/SubnetPool

2 participants