Skip to content

Commit

Permalink
[ocp4_workload_metallb] RFE to add nodeselectors option to L2Advertis…
Browse files Browse the repository at this point in the history
…ement (#8958)

* Update l2advertisement.yaml.j2

* Update main.yml
  • Loading branch information
agonzalezrh authored Jan 9, 2025
1 parent 06760ac commit 2b8e54f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ ocp4_workload_metallb_l2advertisement_ipaddresspool:
- "ip-addresspool"
ocp4_workload_metallb_l2advertisement_interface:
- "br-ex"

# By default, MetalLB advertises in all nodes. This variable is used to specify in which nodes should be advertised

ocp4_workload_metallb_node_selector: ""
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ metadata:
spec:
ipAddressPools: {{ ocp4_workload_metallb_l2advertisement_ipaddresspool | to_yaml }}
interfaces: {{ ocp4_workload_metallb_l2advertisement_interface | to_yaml }}
{% if ocp4_workload_metallb_node_selector | default("") | length > 0 %}
nodeSelectors:
{{ ocp4_workload_metallb_node_selector | to_yaml }}
{% endif %}

0 comments on commit 2b8e54f

Please sign in to comment.