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

View File

@@ -25,5 +25,10 @@ kind: CiliumLoadBalancerIPPool
metadata:
name: "01-lb-pool"
spec:
cidrs:
- cidr: "{{ cilium_bgp_lb_cidr }}"
blocks:
{% 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 %}