Skip to content

Commit

Permalink
Allow IP range for cilium_bgp_lb_cidr (#507)
Browse files Browse the repository at this point in the history
Co-authored-by: Techno Tim <[email protected]>
  • Loading branch information
bdsoha and timothystewart6 authored May 11, 2024
1 parent 353f7ab commit d659715
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions roles/k3s_server_post/templates/cilium.crs.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit d659715

Please sign in to comment.