Skip to content

Commit 1486938

Browse files
committed
Rename to Object
Signed-off-by: ruromero <[email protected]>
1 parent 1d05f23 commit 1486938

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/controller/controllerutil/controllerutil.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func SetOwnerReference(owner, object metav1.Object, scheme *runtime.Scheme) erro
9696
// Validate the owner.
9797
ro, ok := owner.(runtime.Object)
9898
if !ok {
99-
return fmt.Errorf("%T is not a runtime.Object, cannot call SetOwnerReference", owner)
99+
return fmt.Errorf("%T is not a runtime.Object, cannot call SetControllerReference", owner)
100100
}
101101
if err := validateOwner(owner, object); err != nil {
102102
return err
@@ -281,9 +281,9 @@ func RemoveFinalizerWithError(o runtime.Object, finalizer string) error {
281281
return nil
282282
}
283283

284-
// KubernetesObject allows functions to work indistinctly with any resource that
284+
// Object allows functions to work indistinctly with any resource that
285285
// implements both Object interfaces.
286-
type KubernetesObject interface {
286+
type Object interface {
287287
metav1.Object
288288
runtime.Object
289289
}

0 commit comments

Comments
 (0)