Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: #32693 - Cilium BGPv1 - Handle updated and deprecated Cidr fie…
…lds for CiliumLoadBalancerIPPool In 27322f3, the `CiliumLoadBalancerIPPool`'s field named `cidrs` was deprecated. The documentation on https://docs.cilium.io/en/stable/network/lb-ipam/ provides examples of configuring a `CiliumLoadBalancerIPPool` using the field named `blocks`. While attempting to configure a BGP policy using the Advertised Path Attributes feature (https://docs.cilium.io/en/stable/network/bgp-control-plane/#advertised-path-attributes), I was unable to configure a working policy. While discussing this in Cilium's Slack channel, it was pointed out that the BGPv1 reconciler was looking only for the deprecated field. The former name for `blocks` was `cidrs`. This commit updates Cilium's BGPv1 reconciler to support both the deprecated and updated fields. With this update, the BGPv1 reconciler will first look for a `CiliumLoadBalancerIPPool`'s using the updated `blocks` and then continues to evaluate the deprecated field named `cidrs`. The update includes a check to remove duplicates when the same prefix is specified using both new and old fields.
- Loading branch information