Skip to content

Commit

Permalink
Modified open api event path
Browse files Browse the repository at this point in the history
  • Loading branch information
share2kanna committed Sep 21, 2022
1 parent 49f9b8d commit 8f9c8a5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
25 changes: 12 additions & 13 deletions agent/api/agent.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion agent/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ paths:
'200':
description: OK

/localregistry/event/docker:
/event/docker:
post:
tags:
- public
Expand Down
2 changes: 1 addition & 1 deletion agent/pkg/handler/docker_event_api_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
)

func (ah *APIHandler) PostLocalregistryEventDocker(w http.ResponseWriter, r *http.Request) {
func (ah *APIHandler) PostEventDocker(w http.ResponseWriter, r *http.Request) {
event, err := io.ReadAll(r.Body)
if err != nil {
log.Printf("Event body read failed: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion docker-registry-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ notifications:
endpoints:
- name: container-bridge
disabled: false
url: http://agent:8090/localregistry/event
url: http://agent:8090/event/docker
timeout: 10s
threshold: 10
backoff: 1s

0 comments on commit 8f9c8a5

Please sign in to comment.