apiserver/pkg/storage
Madhav Jivrajani db00da87d8 cacher: Fix watch behaviour for unset RV
The original design was to honour strong consistency
semantics for when the RV is unset, i.e. serve the
watch by doing a quorum read.

However, the implementation did not match the intent,
in that, the Cacher did not distinguish between set
and unset RV. This commit rectifies that behaviour by
serving the watch from the underlying storage if the
RV is unset.

This commit subsequently also adds a test for the same.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>

Kubernetes-commit: 610b67031c79c6c38964631d27dd59df357c6d2e
2023-01-16 11:10:05 +05:30
..
cacher cacher: Fix watch behaviour for unset RV 2023-01-16 11:10:05 +05:30
errors Fix function name of IsExist err 2022-03-19 23:06:51 +08:00
etcd3 Added serialization from etcd error metric 2022-12-08 19:34:09 -08:00
names grammar: replace all occurrences of "the the" with "the" 2022-09-17 22:58:01 +02:00
storagebackend Load encryption config once 2022-08-29 17:25:48 -04:00
testing Explicit sorting in TestList storage test 2022-11-21 12:03:54 +01:00
testresource storage: isolate the test resource 2022-05-11 09:05:18 -07:00
tests Reuse generic List test for watchcache 2022-11-04 22:01:37 +01:00
value kmsv2: add metrics 2023-01-29 22:40:18 -08:00
OWNERS apiserver/storage: add myself to the reviewers list 2022-05-12 15:40:33 -07:00
api_object_versioner.go storage: move the APIObjectVersioner definition to storage 2022-05-11 07:44:21 -07:00
api_object_versioner_test.go storage: isolate the test resource 2022-05-11 09:05:18 -07:00
continue.go add explicit typing for continue tests 2022-05-31 10:23:07 -07:00
continue_test.go add explicit typing for continue tests 2022-05-31 10:23:07 -07:00
doc.go move pkg/storage to apiserver 2017-02-01 07:33:52 -05:00
errors.go Fix function name of IsExist err 2022-03-19 23:06:51 +08:00
interfaces.go Update comment and declaration of `storage.GuaranteedUpdate` to be clearer. 2022-04-16 17:19:06 +05:30
selection_predicate.go validate storage cache indexers 2020-02-05 12:08:14 +08:00
selection_predicate_test.go Fix staticcheck failures 2021-04-02 12:23:30 +08:00
util.go Simplify trigger functions in cacher 2019-07-04 14:21:06 +02:00
util_test.go move cacher in separate dir 2018-05-30 20:44:31 +08:00