Skip to content

Commit

Permalink
Merge pull request #539 from yashbhutwala/fix-SetControllerReference-…
Browse files Browse the repository at this point in the history
…error-message

🐛 fix grammer of error in SetControllerReference
  • Loading branch information
k8s-ci-robot committed Jul 25, 2019
2 parents 5181210 + 7b3c83b commit e2c7389
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 e2c7389

Please sign in to comment.