linkerd2/controller/api/destination/watcher
Bruce Chen Wenliang b84b2077d3
Ignore pods in "Terminating" when watching IP addresses. (#5940)
Fixes #5939

Some CNIs reasssign the IP of a terminating pod to a new pod, which
leads to duplicate IPs in the cluster.

It eventually triggers #5939.

This commit will make the IPWatcher, when given an IP, filter out the terminating pods
(when a pod is given a deletionTimestamp).

The issue is hard reproduce because we are not able to assign a
particular IP to a pod manually.

Signed-off-by: Bruce <wenliang.chen@personio.de>

Co-authored-by: Bruce <wenliang.chen@personio.de>
2021-03-24 18:21:42 +05:30
..
endpoints_watcher.go Handle pod lookups for pods that map to a host IP and host port (#5904) 2021-03-18 13:29:43 -04:00
endpoints_watcher_test.go Fix named port resolution mid roll out (#5912) (#5911) 2021-03-17 17:40:11 -04:00
ip_watcher.go Ignore pods in "Terminating" when watching IP addresses. (#5940) 2021-03-24 18:21:42 +05:30
ip_watcher_test.go Handle pod lookups for pods that map to a host IP and host port (#5904) 2021-03-18 13:29:43 -04:00
k8s.go Return invalid argument for external name services (#3120) 2019-07-29 16:31:22 -07:00
opaque_ports_watcher.go destination: pass opaque-ports through cmd flag (#5829) 2021-03-01 16:00:20 +05:30
opaque_ports_watcher_test.go destination: pass opaque-ports through cmd flag (#5829) 2021-03-01 16:00:20 +05:30
profile_watcher.go Ensure we get the correct type out of Informer Deletion events (#4034) 2020-02-15 10:15:24 +02:00
profile_watcher_test.go Service Mirroring Component (#4028) 2020-03-02 21:16:08 +02:00
prometheus.go Add support for stateful sets (#3113) 2019-07-24 14:09:46 -07:00
test_util.go Ensure we get the correct type out of Informer Deletion events (#4034) 2020-02-15 10:15:24 +02:00
traffic_split_watcher.go Upgrade to client-go 0.17.4 and smi-sdk-go 0.3.0 (#4221) 2020-04-01 10:07:23 -07:00
traffic_split_watcher_test.go Upgrade to client-go 0.17.4 and smi-sdk-go 0.3.0 (#4221) 2020-04-01 10:07:23 -07:00