Browse Source

improve validation conditions for MetalLB BGP Peers (#8568)

pull/8576/head
kakkotetsu 2 years ago
committed by GitHub
parent
commit
3effb008c9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions
  1. 5
      roles/kubernetes-apps/metallb/tasks/main.yml

5
roles/kubernetes-apps/metallb/tasks/main.yml

@ -13,9 +13,10 @@
- name: Kubernetes Apps | Check BGP peers for MetalLB - name: Kubernetes Apps | Check BGP peers for MetalLB
fail: 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: 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 - name: Kubernetes Apps | Check AppArmor status
command: which apparmor_parser command: which apparmor_parser

Loading…
Cancel
Save