kubernetes/cmd/kube-proxy/app
Antonio Ojea 26801d6541 kube-proxy avoid race condition using LocalModeNodeCIDR
Since kube-proxy in LocalModeNodeCIDR needs to obtain the PodCIDR
assigned to the node it watches for the Node object.

However, kube-proxy startup process requires to have these watches in
different places, that opens the possibility of having a race condition
if the same node is recreated and a different PodCIDR is assigned.

Initializing the second watch with the value obtained in the first one
allows us to detect this situation.

Change-Id: I6adeedb6914ad2afd3e0694dcab619c2a66135f8
Signed-off-by: Antonio Ojea <aojea@google.com>
2023-06-06 15:03:22 +00:00
..
conntrack.go logging: fix names of keys 2023-01-23 14:24:29 +01:00
init_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
init_windows.go Fix health check from Google's Load Balancer 2022-03-11 22:34:59 -08:00
server_others_test.go kube-proxy avoid race condition using LocalModeNodeCIDR 2023-06-06 15:03:22 +00:00
server_others.go kube-proxy avoid race condition using LocalModeNodeCIDR 2023-06-06 15:03:22 +00:00
server_test.go Add ProxyServer.platformSetup 2023-05-23 16:17:04 -04:00
server_windows.go Merge duplicated Linux/Windows kube-proxy setup code 2023-05-23 16:17:07 -04:00
server.go kube-proxy avoid race condition using LocalModeNodeCIDR 2023-06-06 15:03:22 +00:00