issue 5851 support jib client

Signed-off-by: mmpei <peimingming1986@126.com>
This commit is contained in:
mmpei 2018-09-11 21:01:09 +08:00 committed by peimingming
parent a48ae01e4b
commit 99c70ceab9

View File

@ -159,8 +159,8 @@ func filterEvents(notification *models.Notification) ([]*models.Event, error) {
} }
// pull and push manifest by docker-client or vic // pull and push manifest by docker-client or vic
if (strings.HasPrefix(event.Request.UserAgent, "docker") || strings.HasPrefix(event.Request.UserAgent, vicPrefix)) && if (strings.HasPrefix(event.Request.UserAgent, "docker") || strings.HasPrefix(event.Request.UserAgent, vicPrefix) ||
(event.Action == "pull" || event.Action == "push") { strings.HasPrefix(event.Request.UserAgent, "jib")) && (event.Action == "pull" || event.Action == "push") {
events = append(events, &event) events = append(events, &event)
log.Debugf("add event to collect: %s", event.ID) log.Debugf("add event to collect: %s", event.ID)
continue continue