From 65806b89ce3fe690c2c7bcf61701f64cb4c5f1c6 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Wed, 8 Jul 2020 15:43:25 +0200 Subject: [PATCH] Setup cache dirs properly based on --cache-dir value Kubernetes-commit: 6c6cd2deeb03040d458b00824fd6c1a900a81b51 --- discovery/cached/disk/cached_discovery.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/discovery/cached/disk/cached_discovery.go b/discovery/cached/disk/cached_discovery.go index d9cd8033..6a35dcc6 100644 --- a/discovery/cached/disk/cached_discovery.go +++ b/discovery/cached/disk/cached_discovery.go @@ -268,8 +268,6 @@ func (d *CachedDiscoveryClient) Invalidate() { // CachedDiscoveryClient cache data. If httpCacheDir is empty, the restconfig's transport will not // be updated with a roundtripper that understands cache responses. // If discoveryCacheDir is empty, cached server resource data will be looked up in the current directory. -// TODO(juanvallejo): the value of "--cache-dir" should be honored. Consolidate discoveryCacheDir with httpCacheDir -// so that server resources and http-cache data are stored in the same location, provided via config flags. func NewCachedDiscoveryClientForConfig(config *restclient.Config, discoveryCacheDir, httpCacheDir string, ttl time.Duration) (*CachedDiscoveryClient, error) { if len(httpCacheDir) > 0 { // update the given restconfig with a custom roundtripper that