-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Events for Action #238
Conversation
/lgtm |
@@ -239,6 +242,11 @@ func (cc *Controller) processNextReq() bool { | |||
glog.V(3).Infof("Execute <%v> on Job <%s/%s> in <%s> by <%T>.", | |||
action, req.Namespace, req.JobName, jobInfo.Job.Status.State.Phase, st) | |||
|
|||
if action != vkbatchv1.SyncJobAction { | |||
cc.recordJobEvent(jobInfo.Job.Namespace, jobInfo.Job.Name, vkbatchv1.ExecuteAction, fmt.Sprintf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's ok to record event for SyncJobAction
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the syncAction event is included it generates a lot of events. If included it is observed that the spamfilter of EventBroadcaster then blocks the similar events on that job object. Because of which new events like restartjob/completejob events were not getting send to the api server.
/lgtm |
Adding Events for Action
Adding events for all the actions on the job except the syncjob
#56