Open
Description
Currently, the only way of testing if:
- An index actually gets added to the cache
- Using the index yields the expected result
is to use envtest
, which spins up an etcd and apiserver. Doing so works fine, but requires more setup (the binaries must be available) and has a decent chance of flaking in CI, e.G. due to CPU starvation.
It would be nice if there was a way to test the two cases above via pure unittests.
Discussion originally started here: kubernetes/test-infra#14830 (comment)
/kind feature