in internal/controller/cache_controller.go [97:110]
func cacheOperationIndexerFunc(obj client.Object) []string {
// grab the operation object, extract the owner...
operation := obj.(*v1alpha1.Operation)
owner := metav1.GetControllerOf(operation)
if owner == nil {
return nil
}
// ...make sure it's a Cache...
if owner.APIVersion != v1alpha1.GroupVersion.String() || owner.Kind != "Cache" {
return nil
}
// ...and if so, return it
return []string{owner.Name}
}