support multiple index values for a single object
This commit is contained in:
4
pkg/client/cache/store_test.go
vendored
4
pkg/client/cache/store_test.go
vendored
@@ -123,8 +123,8 @@ func testStoreKeyFunc(obj interface{}) (string, error) {
|
||||
return obj.(testStoreObject).id, nil
|
||||
}
|
||||
|
||||
func testStoreIndexFunc(obj interface{}) (string, error) {
|
||||
return obj.(testStoreObject).val, nil
|
||||
func testStoreIndexFunc(obj interface{}) ([]string, error) {
|
||||
return []string{obj.(testStoreObject).val}, nil
|
||||
}
|
||||
|
||||
func testStoreIndexers() Indexers {
|
||||
|
Reference in New Issue
Block a user