From c0c925f6feb3ab961e088c5aad1376b6de68665d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Tyczy=C5=84ski?= Date: Thu, 22 Dec 2022 11:44:18 +0100 Subject: [PATCH] Minor cleanup in cacher --- staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go b/staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go index bc6500909c3..8547a7d6777 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go @@ -659,11 +659,6 @@ func (c *Cacher) GetList(ctx context.Context, key string, opts storage.ListOptio return c.storage.GetList(ctx, key, opts, listObj) } - match := opts.ResourceVersionMatch - if match != metav1.ResourceVersionMatchNotOlderThan && match != "" { - return fmt.Errorf("unknown ResourceVersionMatch value: %v", match) - } - // If resourceVersion is specified, serve it from cache. // It's guaranteed that the returned value is at least that // fresh as the given resourceVersion.