Skip to content

Commit

Permalink
bugfix: Use provided cache options
Browse files Browse the repository at this point in the history
The options passed to `NewObjectCache` were not actually being copied
into the returned object cache.

Signed-off-by: Justin Kulikauskas <[email protected]>
  • Loading branch information
JustinKuli authored and openshift-merge-bot[bot] committed Apr 30, 2024
1 parent 430cf1e commit 18a8c95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func NewObjectCache(discoveryClient *discovery.DiscoveryClient, options ObjectCa
cache: &sync.Map{},
gvkToGVRCache: &sync.Map{},
discoveryClient: discoveryClient,
options: options,
}
}

Expand Down

0 comments on commit 18a8c95

Please sign in to comment.