Allow removal of IPs from ExternalPPool #6874
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
reported-by/end-user
Issues reported by end users.
Describe the problem/challenge you have
I'm using an ExternalIPPool like this, just with bunch of random public IP addresses. Sometimes i find out i need to migrate an IP address to another cluster/non-kube host.
When trying
# kubectl edit -n antrea ExternalIPPool/antrea-test
and removal of one of the ip ranges, I get an errorSimmilar usage works with metallb, so it would be nice if it worked on antrea too.
Describe the solution you'd like
Allow removal of ipRange from a list in the ExternalIPPool object.
Optinally, allow also modification of a range (to make it smaller if you use it with whole subnets and not specific IPs), but as discussed on Slack, that would be a bit more complicated.
The webhook should not allow removal of an IP that is currently assigned (optionally can try to assign another one, if the conditions allow it)
Anything else you would like to add?
Was discussed here https://kubernetes.slack.com/archives/CR2J23M0X/p1726837982588189
As a manual hack, temporarily removing "UPDATE" keyword in the webhook works, but of course is not a clean solution, because it disables it completely.
The text was updated successfully, but these errors were encountered: