Skip to content

Commit

Permalink
Add method attribute to all webhook-derived EventSource examples (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Seabrook authored Feb 8, 2020
1 parent aab78ca commit fcd7304
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/event-sources/aws-sns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ spec:
endpoint: "/"
# port to run HTTP server on
port: "12000"
# HTTP request method to allow. In this case, only POST requests are accepted
method: "POST"
# url the gateway will use to register at AWS.
# This url must be reachable from outside the cluster.
# The gateway pod is backed by the service defined in the gateway spec. So get the URL for that service AWS can reach to.
Expand All @@ -40,6 +42,7 @@ spec:
endpoint: "/"
# gateway can run multiple HTTP servers, just define a unique port.
port: "13000"
method: "POST"
url: "http://mysecondfakeurl.fake"
# path to file that is mounted in gateway pod which contains certs
serverCertPath: "some path in pod"
Expand All @@ -60,5 +63,6 @@ spec:
webhook:
endpoint: "/"
port: "13000"
method: "POST"
url: "http://mysecondfakeurl.fake"
region: "us-east-1"
3 changes: 3 additions & 0 deletions examples/event-sources/github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ spec:
endpoint: "/push"
# port to run internal HTTP server on
port: "12000"
# HTTP request method to allow. In this case, only POST requests are accepted
method: "POST"
# url the gateway will use to register at Github.
# This url must be reachable from outside the cluster.
# The gateway pod is backed by the service defined in the gateway spec. So get the URL for that service Github can reach to.
Expand Down Expand Up @@ -51,6 +53,7 @@ spec:
webhook:
endpoint: "/push"
port: "13000"
method: "POST"
url: "http://myargofakeurl.fake"
# path to file that is mounted in gateway pod which contains certs
serverCertPath: "some path in pod"
Expand Down
3 changes: 3 additions & 0 deletions examples/event-sources/gitlab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ spec:
endpoint: "/push"
# port to run internal HTTP server on
port: "12000"
# HTTP request method to allow. In this case, only POST requests are accepted
method: "POST"
# url the gateway will use to register at Github.
# This url must be reachable from outside the cluster.
# The gateway pod is backed by the service defined in the gateway spec. So get the URL for that service Github can reach to.
Expand All @@ -38,6 +40,7 @@ spec:
webhook:
endpoint: "/push"
port: "13000"
method: "POST"
url: "http://mysecondfakeurl.fake"
# path to file that is mounted in gateway pod which contains certs
serverCertPath: "some path in pod"
Expand Down
3 changes: 3 additions & 0 deletions examples/event-sources/slack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
endpoint: "/"
# port to run HTTP server on
port: "12000"
# HTTP request method to allow. In this case, only POST requests are accepted
method: "POST"
# token contains information about K8s secret that stores the token
token:
# Name of the K8s secret that contains the token
Expand All @@ -33,6 +35,7 @@ spec:
webhook:
endpoint: "/"
port: "14000"
method: "POST"
# path to file that is mounted in gateway pod which contains certs
serverCertPath: "some path in pod"
# path to file that is mounted in gateway pod which contains private key
Expand Down
4 changes: 4 additions & 0 deletions examples/event-sources/storage-grid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
webhook:
# port to run HTTP server on
port: "8080"
# HTTP request method to allow. In this case, only POST requests are accepted
method: "POST"
# endpoint to listen events on
endpoint: "/"
# List of supported events can be derived from AWS S3 events https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#supported-notification-event-types
Expand All @@ -22,6 +24,8 @@ spec:
webhook:
# port to run HTTP server on
port: "8090"
# HTTP request method to allow. In this case, only POST requests are accepted
method: "POST"
# endpoint to listen events on
endpoint: "/"
# path to file that is mounted in gateway pod which contains certs
Expand Down

0 comments on commit fcd7304

Please sign in to comment.