mirror of
https://github.com/rancher/rke.git
synced 2025-09-16 23:20:56 +00:00
Switch to go modules
This commit is contained in:
2
vendor/k8s.io/client-go/tools/cache/store.go
generated
vendored
Executable file → Normal file
2
vendor/k8s.io/client-go/tools/cache/store.go
generated
vendored
Executable file → Normal file
@@ -210,7 +210,7 @@ func (c *cache) GetByKey(key string) (item interface{}, exists bool, err error)
|
||||
// 'c' takes ownership of the list, you should not reference the list again
|
||||
// after calling this function.
|
||||
func (c *cache) Replace(list []interface{}, resourceVersion string) error {
|
||||
items := map[string]interface{}{}
|
||||
items := make(map[string]interface{}, len(list))
|
||||
for _, item := range list {
|
||||
key, err := c.keyFunc(item)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user