Skip to content

Commit

Permalink
Rename to Object
Browse files Browse the repository at this point in the history
Signed-off-by: ruromero <rromerom@redhat.com>
  • Loading branch information
ruromero committed May 6, 2020
1 parent 1d05f23 commit 1486938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/controller/controllerutil/controllerutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func SetOwnerReference(owner, object metav1.Object, scheme *runtime.Scheme) erro
// Validate the owner.
ro, ok := owner.(runtime.Object)
if !ok {
return fmt.Errorf("%T is not a runtime.Object, cannot call SetOwnerReference", owner)
return fmt.Errorf("%T is not a runtime.Object, cannot call SetControllerReference", owner)
}
if err := validateOwner(owner, object); err != nil {
return err
Expand Down Expand Up @@ -281,9 +281,9 @@ func RemoveFinalizerWithError(o runtime.Object, finalizer string) error {
return nil
}

// KubernetesObject allows functions to work indistinctly with any resource that
// Object allows functions to work indistinctly with any resource that
// implements both Object interfaces.
type KubernetesObject interface {
type Object interface {
metav1.Object
runtime.Object
}

0 comments on commit 1486938

Please sign in to comment.