flannel-io / flannel

flannel is a network fabric for containers, designed for Kubernetes
Apache License 2.0
8.74k stars 2.87k forks source link

wireguard backend: avoid error message if route already exists #1964

Closed maltelehmann closed 4 months ago

maltelehmann commented 4 months ago

While processing node add events, flannel-wg routes are added irrespective of whether they already exist. This causes an error message for each wg peer. This might be misleading since there is actually no problem. By add or replacing the route, this can be avoided.

Fixes #1963

Description

Todos

Release Note

Avoid error message if wireguard route already exists on node.