improve validation conditions for MetalLB BGP Peers (#8568)

This commit is contained in:
kakkotetsu 2022-02-23 16:12:18 +09:00 committed by GitHub
parent a088f492f4
commit 3effb008c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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