k3s/pkg/scheduler/factory
Jonathan Basseri 18a8184dce Add warnings about cache invalidation.
Part of https://github.com/kubernetes/kubernetes/pull/63040 is the
assumption that scheduler cache updates must happen before equivalence
cache updates for any given informer event.

The reason for this is that the equivalence cache implementation checks
the main cache for staleness while holding the equiv. cache write lock.

case 1: If an informer invalidates an equiv. cache entry before the
staleness check, then we know that the main cache update completed.

case 2: If an informer blocks trying to grab the equiv. cache lock, then
invalidation will occur right after the potentially stale update is
written.

This patch adds a note to places where we invalidate the equivalence
cache so that hopefully nobody violates this invariant.
2018-05-22 15:15:37 -07:00
..
BUILD update tests to be specific about the versions they are testing instead of floating 2018-05-01 13:18:41 -04:00
cache_comparer.go -Fix the name could cause a conflict if an object with the same name is created in a different namespace 2018-04-20 11:37:46 +08:00
cache_comparer_test.go -Fix the name could cause a conflict if an object with the same name is created in a different namespace 2018-04-20 11:37:46 +08:00
factory.go Add warnings about cache invalidation. 2018-05-22 15:15:37 -07:00
factory_test.go update tests to be specific about the versions they are testing instead of floating 2018-05-01 13:18:41 -04:00
plugins.go Revert "Revert "Revert revert of equivalence class hash calculation in scheduler"" 2018-04-25 16:11:59 -07:00
plugins_test.go
signal.go Scheduler cache comparer 2018-03-09 15:10:22 -08:00
signal_windows.go Scheduler cache comparer 2018-03-09 15:10:22 -08:00