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

[25.0 backport] libnetwork: loosen container IPAM validation #47135

Conversation

thaJeztah
Copy link
Member

(cherry picked from commit 058b300)

- What I did
Permit container network attachments to set any static IP address within the network's IPAM master pool, including when a subpool is configured. Users have come to depend on being able to statically assign container IP addresses which are guaranteed not to collide with automatically- assigned container addresses.

- How I did it
By deleting a couple lines of code

- How to verify it
New regression test

- Description for the changelog

  • Fixed a regression which restricted static container IP address assignments to the --ip-range of a container network

- A picture of a cute animal (not mandatory but encouraged)

Permit container network attachments to set any static IP address within
the network's IPAM master pool, including when a subpool is configured.
Users have come to depend on being able to statically assign container
IP addresses which are guaranteed not to collide with automatically-
assigned container addresses.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 058b300)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Copy link
Member

@akerouanton akerouanton left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit d25aa32 into moby:25.0 Jan 22, 2024
126 checks passed
@thaJeztah thaJeztah deleted the 25.0_backport_allow-container-ip-outside-subpool branch January 22, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants