Skip to content

Commit

Permalink
fix grammer of error in SetControllerReference
Browse files Browse the repository at this point in the history
  • Loading branch information
yashbhutwala committed Jul 25, 2019
1 parent f770dcb commit 7b3c83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/controllerutil/controllerutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func newAlreadyOwnedError(Object metav1.Object, Owner metav1.OwnerReference) *Al
func SetControllerReference(owner, object metav1.Object, scheme *runtime.Scheme) error {
ro, ok := owner.(runtime.Object)
if !ok {
return fmt.Errorf("is not a %T a runtime.Object, cannot call SetControllerReference", owner)
return fmt.Errorf("%T is not a runtime.Object, cannot call SetControllerReference", owner)
}

gvk, err := apiutil.GVKForObject(ro, scheme)
Expand Down

0 comments on commit 7b3c83b

Please sign in to comment.