Skip to content

Commit

Permalink
removed loadbalancer_class from metallb_config; metallb_loadbalancer_…
Browse files Browse the repository at this point in the history
…class in role defaults
  • Loading branch information
Seal1998 committed Oct 23, 2023
1 parent 688cce8 commit 7a1e078
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions roles/kubernetes-apps/metallb/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ metallb_speaker_tolerations:
key: node-role.kubernetes.io/control-plane
operator: Exists
metallb_controller_tolerations: []
metallb_loadbalancer_class: ""
8 changes: 4 additions & 4 deletions roles/kubernetes-apps/metallb/templates/metallb.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -1724,8 +1724,8 @@ spec:
- args:
- --port={{ metallb_port }}
- --log-level={{ metallb_log_level }}
{% if 'loadbalancer_class' in metallb_config.keys() and metallb_config.loadbalancer_class != "" %}
- --lb-class={{ metallb_config.loadbalancer_class }}
{% if metallb_loadbalancer_class != "" %}
- --lb-class={{ metallb_loadbalancer_class }}
{% endif %}
env:
- name: METALLB_ML_SECRET_NAME
Expand Down Expand Up @@ -1817,8 +1817,8 @@ spec:
- args:
- --port={{ metallb_port }}
- --log-level={{ metallb_log_level }}
{% if 'loadbalancer_class' in metallb_config.keys() and metallb_config.loadbalancer_class != "" %}
- --lb-class={{ metallb_config.loadbalancer_class }}
{% if metallb_loadbalancer_class != "" %}
- --lb-class={{ metallb_loadbalancer_class }}
{% endif %}
env:
- name: METALLB_NODE_NAME
Expand Down

0 comments on commit 7a1e078

Please sign in to comment.