Skip to content

Commit

Permalink
Update peer_with_router.yml
Browse files Browse the repository at this point in the history
Check if peers is defined when peering with routers
  • Loading branch information
ehsan310 committed May 13, 2024
1 parent a8f58c2 commit 7c5f21f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/network_plugin/calico/tasks/peer_with_router.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- "{{ peers | selectattr('scope', 'defined') | selectattr('scope', 'equalto', 'global') | list | default([]) }}"
when:
- inventory_hostname == groups['kube_control_plane'][0]
- peers is defined

- name: Calico | Get node for per node peering
command:
Expand Down Expand Up @@ -111,3 +112,4 @@
delegate_to: "{{ groups['kube_control_plane'][0] }}"
when:
- inventory_hostname in groups['k8s_cluster']
- peers is defined

0 comments on commit 7c5f21f

Please sign in to comment.