[azure] Implement excess IP release support - #669
Draft
jaredledvina wants to merge 3 commits into
Draft
Conversation
jaredledvina
force-pushed
the
jared.ledvina/feature-azure-ip-release
branch
5 times, most recently
from
June 26, 2026 13:14
8ccb53a to
dd77f8b
Compare
jaredledvina
force-pushed
the
jared.ledvina/feature-azure-ip-release
branch
from
June 26, 2026 14:18
dd77f8b to
4db03c3
Compare
Signed-off-by: Jared Ledvina <jared.ledvina@datadoghq.com>
Signed-off-by: Jared Ledvina <jared.ledvina@datadoghq.com>
…flags Signed-off-by: Jared Ledvina <jared.ledvina@datadoghq.com>
jaredledvina
force-pushed
the
jared.ledvina/feature-azure-ip-release
branch
from
June 26, 2026 14:32
4db03c3 to
ddc2297
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
description and a
Fixes: #XXXline if the commit addresses a particularGitHub issue.
Fixes: <commit-id>tag, thenplease add the commit author[s] as reviewer[s] to this issue.
Implements excess free-IP release for the Azure IPAM allocator, mirroring the
existing AWS ENI release feature. It is gated behind a new opt-in operator flag
and is a strict no-op when disabled (the default).
--azure-release-excess-ips(defaultfalse) enables the feature.--azure-excess-ip-release-delay(default180) is the grace period before afree IP marked as excess is released.
The work is split into three commits:
UnassignPrivateIpAddressesVM/UnassignPrivateIpAddressesVMSSon the Azure client (and mock), and tracking of the IPConfiguration name on
each address so VMSS releases can translate IPs to IPConfiguration names.
Primary IPConfigurations are refused pre-flight (fail-closed) because Azure
rejects an update that drops the primary and fails the whole batch.
PrepareIPReleaseselects free IPv4 addresses(Succeeded, non-primary, unused) on the interface with the most releasable
IPs using deterministic sorted-by-ID selection;
ReleaseIPsdispatches tothe VM or VMSS path and updates the operator cache after a successful
release.
passed through to the IPAM node manager.