// validateOwnerReferences returns an index value if a Build is owning a reference or -1 if this is not the case
validateOwnerReferences returns an index value if a Build is owning a reference or -1 if this is not the case
// validateOwnerReferences returns an index value if a Build is owning a reference or - 1 if this is not the case
func (r *ReconcileBuild) validateBuildOwnerReference(references []metav1.OwnerReference, build *build.Build) int {
	for i, ownerRef := range references {
		if ownerRef.Kind == build.Kind && ownerRef.Name == build.Name {
			return i
		}
	}
	return -1
}
func ( r * ReconcileBuild ) validateBuildOwnerReference ( references [ ] metav1 . OwnerReference , build * build . Build ) int { for i , ownerRef := range references { if ownerRef . Kind == build . Kind && ownerRef . Name == build . Name { return i } } return - 1 }
validateOwnerReferences returns an index value if a Build is owning a reference or -1 if this is not the case
validateOwnerReferences returns an index value if a Build is owning a reference or - 1 if this is not the case