mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #82455 from AdheipSingh/patch-1
Update comment for syncHandler
This commit is contained in:
commit
ad0274fb6e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user