in controllers/helper/platform.go [10:24]
func GetOwnerReference(ownerKind string, ors []metav1.OwnerReference) *metav1.OwnerReference {
log.Info("Finding owner", "kind", ownerKind)
if len(ors) == 0 {
return nil
}
for _, o := range ors {
if o.Kind == ownerKind {
return &o
}
}
return nil
}