mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #105247 from Jille/patch-1
Fix double formatting on error message
This commit is contained in:
commit
49f9e227e9
@ -289,7 +289,7 @@ func (c *Controller) syncHandler(key string) error {
|
|||||||
if !metav1.IsControlledBy(deployment, foo) {
|
if !metav1.IsControlledBy(deployment, foo) {
|
||||||
msg := fmt.Sprintf(MessageResourceExists, deployment.Name)
|
msg := fmt.Sprintf(MessageResourceExists, deployment.Name)
|
||||||
c.recorder.Event(foo, corev1.EventTypeWarning, ErrResourceExists, msg)
|
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
|
// If this number of the replicas on the Foo resource is specified, and the
|
||||||
|
Loading…
Reference in New Issue
Block a user