Improve metallb template for bgp peers (#6574)

Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
This commit is contained in:
Arthur Outhenin-Chalandre
2020-08-27 08:15:03 +02:00
committed by GitHub
parent e91c6a7bd1
commit 2f2ed116f7
2 changed files with 2 additions and 1 deletions

View File

@ -5,3 +5,4 @@ metallb_protocol: "layer2"
metallb_port: "7472"
metallb_limits_cpu: "100m"
metallb_limits_mem: "100Mi"
metallb_peers: []

View File

@ -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 }}