Improve metallb template for bgp peers (#6574)
Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
This commit is contained in:
parent
e91c6a7bd1
commit
2f2ed116f7
2 changed files with 2 additions and 1 deletions
|
@ -5,3 +5,4 @@ metallb_protocol: "layer2"
|
|||
metallb_port: "7472"
|
||||
metallb_limits_cpu: "100m"
|
||||
metallb_limits_mem: "100Mi"
|
||||
metallb_peers: []
|
||||
|
|
|
@ -6,7 +6,7 @@ metadata:
|
|||
name: config
|
||||
data:
|
||||
config: |
|
||||
{% if metallb_protocol == 'bgp' %}
|
||||
{% if metallb_peers | length > 0 %}
|
||||
peers:
|
||||
{% for peer in metallb_peers %}
|
||||
- peer-address: {{ peer.peer_address }}
|
||||
|
|
Loading…
Reference in a new issue