Skip to content

Commit

Permalink
Update comment for syncHandler
Browse files Browse the repository at this point in the history
```
// If the Deployment is not controlled by this Foo resource, we should log
// a warning to the event recorder and return error msg
```
For a clearer understanding of the comment.

Kubernetes-commit: db303bc2af859d48958e0b9c084a3b2983c1220f
  • Loading branch information
AdheipSingh authored and k8s-publishing-bot committed Sep 7, 2019
1 parent 2b8cca0 commit 1205a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller.go
Expand Up @@ -284,7 +284,7 @@ func (c *Controller) syncHandler(key string) error {
}

// If the Deployment is not controlled by this Foo resource, we should log
// a warning to the event recorder and ret
// a warning to the event recorder and return error msg.
if !metav1.IsControlledBy(deployment, foo) {
msg := fmt.Sprintf(MessageResourceExists, deployment.Name)
c.recorder.Event(foo, corev1.EventTypeWarning, ErrResourceExists, msg)
Expand Down

0 comments on commit 1205a13

Please sign in to comment.