Skip to content

Commit

Permalink
Metallb 0.14.4 support (#533)
Browse files Browse the repository at this point in the history
* Added support for metallb >= 0.14.4

* update gpg

* Added support for metallb >= 0.14.4

* remove extra file

---------

Co-authored-by: Konstantin Kornienko <[email protected]>
Co-authored-by: Konstantin Kornienko <[email protected]>
  • Loading branch information
3 people authored Jun 19, 2024
1 parent b3588c4 commit a40a7d7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion roles/k3s_server_post/tasks/metallb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,23 @@
loop_control:
label: "{{ item.description }}"

- name: Set metallb webhook service name
set_fact:
metallb_webhook_service_name: >-
{{
(
(metal_lb_controller_tag_version | regex_replace('^v', ''))
is
version('0.14.4', '<', version_type='semver')
) | ternary(
'webhook-service',
'metallb-webhook-service'
)
}}
- name: Test metallb-system webhook-service endpoint
command: >-
k3s kubectl -n metallb-system get endpoints webhook-service
k3s kubectl -n metallb-system get endpoints {{ metallb_webhook_service_name }}
changed_when: false
with_items: "{{ groups[group_name_master | default('master')] }}"
run_once: true
Expand Down

0 comments on commit a40a7d7

Please sign in to comment.