mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
Merge pull request #17131 from pmorie/store-assert
Auto commit by PR queue bot
This commit is contained in:
commit
dfb9ed2047
2
pkg/client/cache/store.go
vendored
2
pkg/client/cache/store.go
vendored
@ -116,6 +116,8 @@ type cache struct {
|
||||
keyFunc KeyFunc
|
||||
}
|
||||
|
||||
var _ Store = &cache{}
|
||||
|
||||
// Add inserts an item into the cache.
|
||||
func (c *cache) Add(obj interface{}) error {
|
||||
key, err := c.keyFunc(obj)
|
||||
|
Loading…
Reference in New Issue
Block a user