Unify merge GetToList and List storage methods to single GetList

This commit is contained in:
Wojciech Tyczyński
2022-02-10 10:15:29 +01:00
parent 3016b3d8f8
commit f3d56369f7
9 changed files with 30 additions and 60 deletions

View File

@@ -561,7 +561,7 @@ func testListOptionsCase(t *testing.T, rsClient appsv1.ReplicaSetInterface, watc
}
count := int64(len(items))
// Cacher.GetToList defines this for logic to decide if the watch cache is skipped. We need to know it to know if
// Cacher.GetList defines this for logic to decide if the watch cache is skipped. We need to know it to know if
// the limit is respected when testing here.
pagingEnabled := utilfeature.DefaultFeatureGate.Enabled(features.APIListChunking)
hasContinuation := pagingEnabled && len(opts.Continue) > 0