mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-01-31 17:02:52 +08:00
Fix double formatting on error message
fmt.Errorf() was called with a message rather than a format string Kubernetes-commit: 4c038d387c081c2a1a222adb76cbc2b0750fa520
This commit is contained in:
parent
8b9d281313
commit
2760f8658e
@ -289,7 +289,7 @@ func (c *Controller) syncHandler(key string) error {
|
||||
if !metav1.IsControlledBy(deployment, foo) {
|
||||
msg := fmt.Sprintf(MessageResourceExists, deployment.Name)
|
||||
c.recorder.Event(foo, corev1.EventTypeWarning, ErrResourceExists, msg)
|
||||
return fmt.Errorf(msg)
|
||||
return fmt.Errorf("%s", msg)
|
||||
}
|
||||
|
||||
// If this number of the replicas on the Foo resource is specified, and the
|
||||
|
Loading…
Reference in New Issue
Block a user