Skip to content

LB-IPAM: Change default CiliumLoadBalancerIPPool behavior and remove deprecated cidrs field from CiliumLoadBalancerIPPool - #33151

Merged
dylandreimerink merged 2 commits into
mainfrom
pr/dylandreimerink/lb-ipam-1.16-cleanup
Jun 19, 2024
Merged

dylandreimerink merged 2 commits into
mainfrom
pr/dylandreimerink/lb-ipam-1.16-cleanup

Conversation

@dylandreimerink

Copy link
Copy Markdown
Member

This PR changes the default value of the optional AllowFirstLastIPs setting so pools allow for allocation of the first and last IP by default. This defaulted to not allowing the allocation beforehand. v1.15 introduced the option, users can preserve existing behavior by explicitly specifying AllowFirstLastIPs.

This PR also removes the cidrs field from the CiliumLoadBalancerIPPool.spec. v1.15 introduced non-cidr ranges, thus the name didn't match anymore. v1.15 added blocks to replace cidrs. Both fields were merged, so they acted as alias. Now in v1.16 we are cleaning up the deprecated field and removing cidrs. Users should make sure to switch to using blocks before the upgrade.

Fixes: #28590
Fixes: #28591

Change default CiliumLoadBalancerIPPool behavior and remove deprecated `cidrs` field from CiliumLoadBalancerIPPool

@dylandreimerink dylandreimerink added kind/cleanup This includes no functional changes. release-note/minor This PR changes functionality that users may find relevant to operating Cilium. feature/lb-ipam labels Jun 14, 2024
@dylandreimerink

Copy link
Copy Markdown
Member Author

/test

@dylandreimerink
dylandreimerink marked this pull request as ready for review June 14, 2024 12:44
@dylandreimerink
dylandreimerink requested review from a team as code owners June 14, 2024 12:44

@rastislavs rastislavs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

BGP changes LGTM 🚀

@sayboras sayboras left a comment

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.

Looks good for Ingress and Gateway API related files.

@joamaki joamaki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

operator & k8s changes LGTM

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

docs good

@youngnick
youngnick removed their request for review June 17, 2024 11:27
@dylandreimerink
dylandreimerink force-pushed the pr/dylandreimerink/lb-ipam-1.16-cleanup branch from 742b62b to 3b42515 Compare June 17, 2024 12:05
@dylandreimerink

Copy link
Copy Markdown
Member Author

/test

@dylandreimerink
dylandreimerink force-pushed the pr/dylandreimerink/lb-ipam-1.16-cleanup branch from 3b42515 to 4efbad9 Compare June 18, 2024 07:03
In v1.15, we introduced this setting and defaulted to `no` for
`AllowFirstLastIP` to preserve the previous behavior. However, in most
cases its preferable to default to `yes`. Users should explicitly set
this field to their desired value if they don't want the behavior of
pools to change.

Signed-off-by: Dylan Reimerink <[email protected]>
Originally the CiliumLoadBalancerIPPool only had CIDRs, and thus a field
called `cidrs` containing a list of CIDRs. In v1.15 it became possible
to specify ranges of IPs with a start and end IP. A new field was added
called `blocks` which was treated as an alias of `cidrs`. This was done
to allow for a smooth transition. This commit removes the `cidrs` field
to complete the transition.

Signed-off-by: Dylan Reimerink <[email protected]>
@dylandreimerink
dylandreimerink force-pushed the pr/dylandreimerink/lb-ipam-1.16-cleanup branch from 4efbad9 to 50201a9 Compare June 18, 2024 10:29
@dylandreimerink

Copy link
Copy Markdown
Member Author

/test

@dylandreimerink
dylandreimerink added this pull request to the merge queue Jun 19, 2024
Merged via the queue into main with commit 6aa4fa8 Jun 19, 2024
@dylandreimerink
dylandreimerink deleted the pr/dylandreimerink/lb-ipam-1.16-cleanup branch June 19, 2024 09:58
@maintainer-s-little-helper maintainer-s-little-helper Bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature/lb-ipam kind/cleanup This includes no functional changes. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/minor This PR changes functionality that users may find relevant to operating Cilium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LB-IPAM switch CiliumLoadBalancerIPPool.Spec.AllowFirstLastIPs from default Yes to default No Remove CiliumLoadBalancerIPPool.Spec.cidrs in v1.16

5 participants