Skip to content

Commit

Permalink
Merge pull request #2536 from jarrpa/jarrpa/scr-controller-own
Browse files Browse the repository at this point in the history
storageclassrequest: set controller ownerref
  • Loading branch information
openshift-merge-bot[bot] authored Mar 29, 2024
2 parents 26be0b7 + 435a1fb commit 0c259e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ func (r *StorageClassRequestReconciler) list(obj client.ObjectList, listOptions

func (r *StorageClassRequestReconciler) own(resource metav1.Object) error {
// Ensure StorageClassRequest ownership on a resource
return controllerutil.SetOwnerReference(r.StorageClassRequest, resource, r.Scheme)
return controllerutil.SetControllerReference(r.StorageClassRequest, resource, r.Scheme)
}

func (r *StorageClassRequestReconciler) getNamespacedName() string {
Expand Down

0 comments on commit 0c259e6

Please sign in to comment.