-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add v1beta1 API for IPPool CRD (#6036)
As part of this change, we try to unify IPPool subnet and ExternalIPPool definitions: We make IPPoolSpec of IPPool use the same way to define IP ranges and subnet as ExternalIPPool. With this change, one IPPool can have multiple IP ranges, but it can only have one SubnetInfo, so this change also adjusts the related tests, especially the ones for antrea IPAM validation. We also remove the IPVersion field in IPPool definition, and change the IPPool VLAN field from uint16 to int32. We add a conversion webhook for the IPPool CRD. If a v1alpha1 IPPool cannot be converted to an equivalent v1beta1 IPPool, the conversion webhook will return an error, in which case the user would need to change their IPPool resources manually. Fixes #5961 Signed-off-by: Mengdie Song <[email protected]>
- Loading branch information
1 parent
6b0f4f4
commit 9a9db6f
Showing
48 changed files
with
2,789 additions
and
525 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.