Skip to content

[1.19][azure] Implement excess-ip-release support#665

Open
jaredledvina wants to merge 1 commit into
v1.19-ddfrom
jared.ledvina/azure-ip-release-1-19
Open

[1.19][azure] Implement excess-ip-release support#665
jaredledvina wants to merge 1 commit into
v1.19-ddfrom
jared.ledvina/azure-ip-release-1-19

Conversation

@jaredledvina
Copy link
Copy Markdown
Member

1.19 specific implementation for excess IP release in Azure

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c1dff73613

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/azure/ipam/node.go
@jaredledvina jaredledvina force-pushed the jared.ledvina/azure-ip-release-1-19 branch from c1dff73 to 16e5513 Compare May 5, 2026 18:00
Copy link
Copy Markdown
Member Author

@codex review

@jaredledvina jaredledvina force-pushed the jared.ledvina/azure-ip-release-1-19 branch from 16e5513 to 5a450dd Compare May 5, 2026 18:34
@jaredledvina
Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Signed-off-by: jaredledvina <jared.ledvina@datadoghq.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@jaredledvina jaredledvina force-pushed the jared.ledvina/azure-ip-release-1-19 branch from 5a450dd to a0a824b Compare May 5, 2026 19:34
flags.Bool(operatorOption.AzureReleaseExcessIPs, false, "Enable releasing excess free IP addresses from Azure network interfaces.")
option.BindEnv(vp, operatorOption.AzureReleaseExcessIPs)

flags.Int(operatorOption.ExcessIPReleaseDelay, 180, "Number of seconds operator would wait before it releases an IP previously marked as excess")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note: Duplicated here as on 1.19 the flag is only implemented in the AWS provider

flags.Int(operatorOption.ExcessIPReleaseDelay, 180, "Number of seconds operator would wait before it releases an IP previously marked as excess")
option.BindEnv(vp, operatorOption.ExcessIPReleaseDelay)

Upstream, there's the shared provider config we will use.

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.

Note: this will work in our case because we don't build the omnibus operator, but if we were to try with that change, it would fail as two separate cells would try to bind the same CLI flag.

flags.Bool(operatorOption.AzureUsePrimaryAddress, false, "Use Azure IP address from interface's primary IPConfigurations")
option.BindEnvWithLegacyEnvFallback(vp, operatorOption.AzureUsePrimaryAddress, "AZURE_USE_PRIMARY_ADDRESS")

flags.Bool(operatorOption.AzureReleaseExcessIPs, false, "Enable releasing excess free IP addresses from Azure network interfaces.")
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.

Note: for when we want to upstream this, it'll probably be better to create a new global --ipam-release-excess-ips flag that both AWS and Azure use and start deprecating the existing AWS only flag.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants