Allow IP range for cilium_bgp_lb_cidr (#507)

Co-authored-by: Techno Tim <timothystewart6@gmail.com>
This commit is contained in:
Dov Benyomin Sohacheski 2024-05-11 05:45:29 +03:00 committed by GitHub
parent 353f7ab641
commit d6597150c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,5 +25,10 @@ kind: CiliumLoadBalancerIPPool
metadata: metadata:
name: "01-lb-pool" name: "01-lb-pool"
spec: spec:
cidrs: blocks:
- cidr: "{{ cilium_bgp_lb_cidr }}" {% if "/" in cilium_bgp_lb_cidr %}
- cidr: {{ cilium_bgp_lb_cidr }}
{% else %}
- start: {{ cilium_bgp_lb_cidr.split('-')[0] }}
stop: {{ cilium_bgp_lb_cidr.split('-')[1] }}
{% endif %}