Update Event recorder to not parse % format characters in error message
*Eventf takes a format string. This change passes "%s" as the format string and then the unsanitized string as an argument. Fixes #837 Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>
This commit is contained in:
parent
54effc73f9
commit
3178304167
|
@ -87,7 +87,7 @@ func NewAPIRecorder(r record.EventRecorder) *APIRecorder {
|
|||
|
||||
// Event records the supplied event.
|
||||
func (r *APIRecorder) Event(obj runtime.Object, e Event) {
|
||||
r.kube.AnnotatedEventf(obj, r.annotations, string(e.Type), string(e.Reason), e.Message)
|
||||
r.kube.AnnotatedEventf(obj, r.annotations, string(e.Type), string(e.Reason), "%s", e.Message)
|
||||
}
|
||||
|
||||
// WithAnnotations returns a new *APIRecorder that includes the supplied
|
||||
|
|
Loading…
Reference in New Issue