Skip to content

Commit

Permalink
improve validation conditions for MetalLB BGP Peers (kubernetes-sigs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkotetsu authored and sakuraiyuta committed Apr 16, 2022
1 parent 0ee81e0 commit 1b19f7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions roles/kubernetes-apps/metallb/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@

- name: Kubernetes Apps | Check BGP peers for MetalLB
fail:
msg: "metallb_peers is mandatory when metallb_protocol is bgp"
msg: "metallb_peers is mandatory when metallb_protocol is bgp and metallb_speaker_enabled"
when:
- metallb_protocol == 'bgp' and metallb_peers is not defined
- metallb_protocol == 'bgp' and metallb_speaker_enabled
- metallb_peers is not defined or not metallb_peers

- name: Kubernetes Apps | Check AppArmor status
command: which apparmor_parser
Expand Down

0 comments on commit 1b19f7a

Please sign in to comment.