From db303bc2af859d48958e0b9c084a3b2983c1220f Mon Sep 17 00:00:00 2001 From: AdheipSingh <34169002+AdheipSingh@users.noreply.github.com> Date: Sat, 7 Sep 2019 19:09:56 +0530 Subject: [PATCH] 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. --- staging/src/k8s.io/sample-controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/sample-controller/controller.go b/staging/src/k8s.io/sample-controller/controller.go index d3c45030803..3edbde601d3 100644 --- a/staging/src/k8s.io/sample-controller/controller.go +++ b/staging/src/k8s.io/sample-controller/controller.go @@ -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)