mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-16 15:25:18 +01:00
issue 5851 support jib client
Signed-off-by: mmpei <peimingming1986@126.com>
This commit is contained in:
parent
a48ae01e4b
commit
99c70ceab9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user