Skip to content

Commit

Permalink
tfjob: Send event to object, not to TFJob (#807)
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <gaoce@caicloud.io>
  • Loading branch information
gaocegege authored and k8s-ci-robot committed Aug 30, 2018
1 parent 037e915 commit f78e619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller.v2/tfcontroller/tfjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (tc *TFController) addTFJob(obj interface{}) {
if err == errFailedMarshal {
errMsg := fmt.Sprintf("Failed to unmarshal the object to TFJob object: %v", err)
logger.Warn(errMsg)
tc.Recorder.Event(tfJob, v1.EventTypeWarning, failedMarshalTFJobReason, errMsg)
tc.Recorder.Event(un, v1.EventTypeWarning, failedMarshalTFJobReason, errMsg)
}
return
}
Expand Down

0 comments on commit f78e619

Please sign in to comment.