-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs(): adding docs for webhook gateway * docs(): adding docs for webhook * docs(): adding docs for calendar * docs(): adding docs for calendar * docs(): adding docs for calendar * docs(): updating docs and adding docs for artifact * docs(): adding docs for artifact * feature(): support listening to multiple S3 events * docs(): updating docs * docs(): adding docs for file * chore(): update artifact configmap * docs(): adding docs for resource * docs(): adding docs for resource * docs(): adding docs for stream * docs(): adding docs for aws sns * docs(): adding docs for aws sns * docs(): adding docs for aws sns * feature(): adding trello gateway * docs(): adding docs for aws sqs * docs(): adding docs for gcp pubsub * docs(): adding docs for github * docs(): adding docs for github * docs(): adding docs for github * docs(): adding docs * docs(): adding docs for slack * docs(): adding docs for storage grid * docs(): adding docs for storage grid * docs(): adding docs for trello * docs(): adding docs for trello * fix(): fixing artifact gateway validation * docs(): adding docs * docs(): adding docs * fix(): gateway dispatcher logging fix * chore(): fix docs * chore(): updating github sensor example * fix(): examples * chore(): update image tag * docs(): removing FAQ * docs(): updating gateway docs * docs(): updating gateway docs
- Loading branch information
1 parent
a913daf
commit cb6aa09
Showing
65 changed files
with
780 additions
and
1,043 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.8.0 | ||
0.8.3 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Setup | ||
|
||
1. [Webhook](../gateways/core/webhook/README.md) | ||
2. [Calendar](../gateways/core/calendar/README.md) | ||
3. [Minio S3](../gateways/core/artifact/README.md) | ||
4. [Resource](../gateways/core/resource/README.md) | ||
5. [Stream](../gateways/core/stream/README.md) | ||
6. [AWS SNS](../gateways/community/aws-sns/README.md) | ||
7. [AWS SQS](../gateways/community/aws-sqs/README.md) | ||
8. [GCP PubSub](../gateways/community/gcp-pubsub/README.md) | ||
9. [Gitlab](../gateways/community/gitlab/README.md) | ||
10. [Github](../gateways/community/github/README.md) | ||
11. [HDFS](../gateways/community/hdfs) | ||
12. [Slack](../gateways/community/slack/README.md) | ||
13. [StorageGrid](../gateways/community/storagegrid/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: slack-gateway-configmap | ||
data: | ||
notification_1: |- | ||
hook: | ||
endpoint: "/event" | ||
port: "12000" | ||
url: "URL_OF_SERVICE" | ||
token: | ||
name slack-secret | ||
key: tokenkey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Gateway | ||
metadata: | ||
name: slack-gateway | ||
labels: | ||
gateways.argoproj.io/gateway-controller-instanceid: argo-events | ||
gateway-name: "slack-gateway" | ||
spec: | ||
processorPort: "9330" | ||
eventProtocol: | ||
type: "HTTP" | ||
http: | ||
port: "9300" | ||
template: | ||
metadata: | ||
name: "slack-gateway" | ||
labels: | ||
gateway-name: "slack-gateway" | ||
spec: | ||
containers: | ||
- name: "gateway-client" | ||
image: "argoproj/gateway-client" | ||
imagePullPolicy: "Always" | ||
command: ["/bin/gateway-client"] | ||
- name: "slack-events" | ||
image: "argoproj/slack-gateway" | ||
imagePullPolicy: "Always" | ||
command: ["/bin/slack-gateway"] | ||
serviceAccountName: "argo-events-sa" | ||
service: | ||
metadata: | ||
name: slack-gateway-svc | ||
spec: | ||
selector: | ||
gateway-name: "slack-gateway" | ||
ports: | ||
- port: 12000 | ||
targetPort: 12000 | ||
type: LoadBalancer | ||
configMap: "slack-gateway-configmap" | ||
type: "slack" | ||
eventVersion: "1.0" | ||
watchers: | ||
sensors: | ||
- name: "slack-sensor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Sensor | ||
metadata: | ||
name: slack-sensor | ||
labels: | ||
sensors.argoproj.io/sensor-controller-instanceid: argo-events | ||
spec: | ||
template: | ||
containers: | ||
- name: "sensor" | ||
image: "argoproj/sensor" | ||
imagePullPolicy: Always | ||
serviceAccountName: argo-events-sa | ||
eventProtocol: | ||
type: "HTTP" | ||
http: | ||
port: "9300" | ||
dependencies: | ||
- name: "slack-gateway:notification_1" | ||
triggers: | ||
- template: | ||
name: slack-workflow | ||
group: argoproj.io | ||
version: v1alpha1 | ||
kind: Workflow | ||
source: | ||
inline: | | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: slack- | ||
spec: | ||
entrypoint: whalesay | ||
arguments: | ||
parameters: | ||
- name: message | ||
# this is the value that should be overridden | ||
value: hello world | ||
templates: | ||
- name: whalesay | ||
inputs: | ||
parameters: | ||
- name: message | ||
container: | ||
image: docker/whalesay:latest | ||
command: [cowsay] | ||
args: ["{{inputs.parameters.message}}"] | ||
resourceParameters: | ||
- src: | ||
event: "slack-gateway:notification_1" | ||
dest: spec.arguments.parameters.0.value |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<p align="center"> | ||
<img src="https://github.com/argoproj/argo-events/blob/ebdbdd4a2a8ce47a0fc6e9a6a63531be2c26148a/docs/assets/sns.png?raw=true" alt="AWS SNS"/> | ||
</p> | ||
|
||
<br/> | ||
|
||
# AWS SNS | ||
|
||
AWS SNS gateway listens to notifications from SNS. | ||
|
||
### How to define an event source in confimap? | ||
An entry in the gateway configmap corresponds to [this](https://github.com/argoproj/argo-events/blob/a913dafbf000eb05401ef2c847b29152af82977f/gateways/community/aws-sns/config.go#L70-L75). | ||
|
||
### Why is there webhook in the gateway? | ||
Because one of the ways you can receive notifications from SNS is over http. So the gateway runs a http server internally. | ||
Once you create a new gateway configmap or add a new event source entry in the configmap, the gateway will register the url of the server on AWS. | ||
All notifications for that topic will then be dispatched by SNS over to the endpoint specified in event source. | ||
|
||
The gateway spec defined in `examples` has a `serviceSpec`. This service is used to expose the gateway server to the outside world. | ||
|
||
**How to get the URL for the service?** | ||
Depending upon the Kubernetes provider, you can create the Ingress or Route. | ||
|
||
## Setup | ||
|
||
**1. Install [Gateway](../../../examples/gateways/aws-sns.yaml)** | ||
|
||
We are installing gateway before creating configmap. Because we need to have the gateway pod running and a service backed by the pod, so | ||
that we can get the URL for the service. | ||
|
||
Make sure gateway pod and service is running | ||
|
||
**2. Install [Gateway Configmap](../../../examples/gateways/aws-sns-gateway-configmap.yaml)** | ||
|
||
**3. Install [Sensor](../../../examples/sensors/aws-sns.yaml)** | ||
|
||
Make sure sensor pod is created. | ||
|
||
**4. Trigger Workflow** | ||
|
||
As soon as there is message on your SNS topic, a workflow will be triggered. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<p align="center"> | ||
<img src="https://github.com/argoproj/argo-events/blob/ebdbdd4a2a8ce47a0fc6e9a6a63531be2c26148a/docs/assets/sqs.png?raw=true" alt="AWS SQS"/> | ||
</p> | ||
|
||
<br/> | ||
|
||
# AWS SQS | ||
|
||
AWS SNS gateway consumes messages from SQS queue. | ||
|
||
### How to define an event source in confimap? | ||
An entry in configmap corresponds to [this](https://github.com/argoproj/argo-events/blob/a913dafbf000eb05401ef2c847b29152af82977f/gateways/community/aws-sqs/config.go#L37-L51). | ||
|
||
Because SQS works on polling, you need to provide a `waitTimeSeconds`. | ||
|
||
## Setup | ||
|
||
**1. Install [Gateway](../../../examples/gateways/aws-sqs.yaml)** | ||
|
||
Make sure gateway pod and service is running | ||
|
||
**2. Install [Gateway Configmap](../../../examples/gateways/aws-sqs-gateway-configmap.yaml)** | ||
|
||
**3. Install [Sensor](../../../examples/sensors/aws-sqs.yaml)** | ||
|
||
Make sure sensor pod is created. | ||
|
||
**4. Trigger Workflow** | ||
|
||
As soon as there a message is consumed from SQS queue, a workflow will be triggered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<p align="center"> | ||
<img src="https://github.com/argoproj/argo-events/blob/ebdbdd4a2a8ce47a0fc6e9a6a63531be2c26148a/docs/assets/pubsub.png?raw=true" alt="GCP PubSub"/> | ||
</p> | ||
|
||
<br/> | ||
|
||
# GCP PubSub | ||
|
||
GCP PubSub gateway listens to event streams on google cloud pub sub topics. | ||
|
||
|
||
### How to define an event source in confimap? | ||
An entry in the gateway configmap corresponds to [this](https://github.com/argoproj/argo-events/blob/a913dafbf000eb05401ef2c847b29152af82977f/gateways/community/gcp-pubsub/config.go#L31-L36). | ||
|
||
Make sure to mount credentials file for authentication in gateway pod and refer the path in `credentialsFile`. | ||
|
||
## Setup | ||
**1. Install [Gateway Configmap](../../../examples/gateways/gcp-pubsub-gateway-configmap.yaml)** | ||
|
||
**2. Install [Gateway](../../../examples/gateways/gcp-pubsub.yaml)** | ||
|
||
Make sure gateway pod and service is running | ||
|
||
**3. Install [Sensor](../../../examples/sensors/gcp-pubsub.yaml)** | ||
|
||
Make sure sensor pod is created. | ||
|
||
**4. Trigger Workflow** | ||
|
||
As soon as there a message is consumed from PubSub topic, a workflow will be triggered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<p align="center"> | ||
<img src="https://github.com/argoproj/argo-events/blob/ebdbdd4a2a8ce47a0fc6e9a6a63531be2c26148a/docs/assets/github-logo.png?raw=true" alt="GitHub"/> | ||
</p> | ||
|
||
<br/> | ||
|
||
# Github | ||
|
||
The gateway listens to events from GitHub. | ||
|
||
Refer [here](https://developer.github.com/v3/activity/events/types/) for more information on type of events. | ||
|
||
### How to define an event source in confimap? | ||
An entry in the gateway configmap corresponds to [this](https://github.com/argoproj/argo-events/blob/30eaa296651e80b11ffef3b20464a08a2041eb09/gateways/community/github/config.go#L50-L73). | ||
|
||
Refer [this](https://developer.github.com/v3/repos/hooks/#get-single-hook) to understand the structure of webhook. | ||
|
||
The gateway spec defined in `examples` has a `serviceSpec`. This service is used to expose the gateway server and make it reachable from GitHub. | ||
|
||
The event payload dispatched from gateway contains the type of the event in the headers. | ||
|
||
**How to get the URL for the service?** | ||
|
||
Depending upon the Kubernetes provider, you can create the Ingress or Route. | ||
|
||
## Setup | ||
|
||
**1. Install [Gateway](../../../examples/gateways/github.yaml)** | ||
|
||
We are installing gateway before creating configmap. Because we need to have the gateway pod running and a service backed by the pod, so | ||
that we can get the URL for the service. | ||
|
||
Make sure gateway pod and service is running | ||
|
||
**2. Install [Gateway Configmap](../../../examples/gateways/github-gateway-configmap.yaml)** | ||
|
||
**3. Install [Sensor](../../../examples/sensors/github.yaml)** | ||
|
||
Make sure sensor pod is created. | ||
|
||
**4. Trigger Workflow** | ||
|
||
Depending upon the event you subscribe to, a workflow will be triggered. |
Oops, something went wrong.