kilo/pkg
Lucas Servén Marín d1948acd77
pkg/mesh: fix panic in graph
Commit 4d00bc56fe introduced a bug in the
Kilo graph generation logic. This commit used the WireGuard CIDR from
the topology struct as the graph title, however this field is nil
whenever the selected node is not a leader, causing the program to
panic.

This commit changes the meaning of the topology struct's wireGuardCIDR
field so that the field is always defined and the normalized value will
always be equal to the Kilo subnet CIDR. When the selected node is a
leader node, then the field's IP will be the IP allocated to the node
within the subnet. This effectively prevents the program from panicking.

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
2021-03-25 02:59:54 +01:00
..
calico pkg/mesh,pkg/wireguard: allow DNS name endpoints 2020-02-22 17:17:13 +01:00
encapsulation pkg/encapsulation/ipip.go: fix order of flags 2021-03-13 19:55:00 +01:00
iproute pkg/{encapsulation,mesh}: abstract encapsulation 2019-05-13 18:30:03 +02:00
ipset init 2019-01-18 02:50:10 +01:00
iptables cmd/kg,pkg: add --resync-period flag 2021-03-01 18:20:06 +01:00
k8s FEATURE: allow disabling private IPs 2021-03-13 23:33:18 +01:00
mesh pkg/mesh: fix panic in graph 2021-03-25 02:59:54 +01:00
route pkg/route,pkg/mesh: replace NAT with ip rules 2020-02-20 21:27:50 +01:00
version init 2019-01-18 02:50:10 +01:00
wireguard pkg/*: allow kgctl to compile for other OSes 2020-11-14 12:16:07 +01:00