Files
virtual-kubelet/node
Sargun Dhillon 12625131b5 Solve the notification on startup pod status notification race condition
This solves the race condition as described in
https://github.com/virtual-kubelet/virtual-kubelet/issues/836.

It does this by checking two conditions when the possible race condition
is detected.

If we receive a pod notification from the provider, and it is not
in our known pods list:
1. Is our cache in-sync?
2. Is it known to our pod lister?

The first case can happen because of the order we start the
provider and sync our caches. The second case can happen because
even if the cache returns synced, it does not mean all of the call
backs on the informer have quiesced.

This slightly changes the behaviour of notifyPods to that it
can block (especially at startup). We can solve this later
by using something like a fair (ticket?) lock.
2020-07-22 18:57:27 -07:00
..
2019-09-26 20:52:06 +09:00
2019-08-05 20:13:40 +01:00
2020-07-07 21:00:56 -07:00
2019-10-24 09:23:28 -07:00
2020-07-07 21:00:56 -07:00
2020-07-07 21:00:56 -07:00
2019-10-02 09:28:09 -07:00