mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-10-30 17:58:14 +00:00
This PR changes the TestListOptions setup to execute compaction before we start apiserver allowing the test work with cache snapshots from KEP-4988 by preventing creation of snapshots for compacted revisions. While etcd compaction removes access to old revision, with KEP-4988 those revisions will be still available in watch cache. Implementing compaction for watch cache doesn't make sense as it would only be used for testing, making it unreliable. To properly test how etcd and watch cache behaves on compacted revisions we need to compact etcd before we start apiserver.