Update comment for syncHandler

```
// 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
This commit is contained in:
AdheipSingh 2019-09-07 19:09:56 +05:30 committed by Kubernetes Publisher
parent 2b8cca0f69
commit 1205a13b28

View File

@ -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)