-
Notifications
You must be signed in to change notification settings - Fork 7
[1.19][azure] Implement excess-ip-release support #665
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
base: v1.19-dd
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -34,5 +34,11 @@ func (hook *azureFlagsHooks) RegisterProviderFlag(cmd *cobra.Command, vp *viper. | |||||
| 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.") | ||||||
| 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") | ||||||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 cilium/operator/cmd/provider_aws_flags.go Lines 29 to 30 in 0e4992c
Upstream, there's the shared provider config we will use.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||||||
| option.BindEnv(vp, operatorOption.ExcessIPReleaseDelay) | ||||||
|
|
||||||
| vp.BindPFlags(flags) | ||||||
| } | ||||||
There was a problem hiding this comment.
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-ipsflag that both AWS and Azure use and start deprecating the existing AWS only flag.