allow overriding calico peers names and avoid ipv6 naming issues (#7591)

This commit is contained in:
Cristian Calin
2021-05-11 17:05:36 +03:00
committed by GitHub
parent 1d078e1119
commit 8c0a2741ae

View File

@ -227,7 +227,7 @@
{"apiVersion": "projectcalico.org/v3",
"kind": "BGPPeer",
"metadata": {
"name": "global-{{ item.router_id }}"
"name": "global-{{ item.name | default(item.router_id|replace(':','-')) }}"
},
"spec": {
"asNumber": "{{ item.as }}",
@ -381,7 +381,7 @@
{"apiVersion": "projectcalico.org/v3",
"kind": "BGPPeer",
"metadata": {
"name": "{{ inventory_hostname }}-{{ item.router_id }}"
"name": "{{ inventory_hostname }}-{{ item.name | default(item.router_id|replace(':','-')) }}"
},
"spec": {
"asNumber": "{{ item.as }}",