-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(): adding gateway examples * fix(): updating resource gateway. renew watch. * fix(): adding informer factory to watch updates * fix(): adding informer factory to watch updates * fix(): renewing watch in resource gateway * fix(): update example * fix(): update makefile * fix(): fix calendar gateway bug
- Loading branch information
1 parent
d5c4871
commit 3eee3c9
Showing
11 changed files
with
1,425 additions
and
83 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,17 @@ | ||
# For more information, https://github.com/argoproj/argo-events/blob/e0242e7b00f7edc7e0cff314abd3a728ddf3c62b/gateways/community/aws-sns/config.go#L68 | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: aws-sns-gateway-configmap | ||
data: | ||
notification_1: |- | ||
topicArn: "topic-arn" | ||
endpoint: "/" | ||
port: "9600" | ||
accessKey: | ||
name: aws-secret | ||
key: access | ||
secretKey: | ||
name aws-secret | ||
key: secret | ||
region: "us-east-1" |
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,35 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Gateway | ||
metadata: | ||
name: aws-sns-gateway | ||
labels: | ||
gateways.argoproj.io/gateway-controller-instanceid: argo-events | ||
gateway-name: "aws-sns-gateway" | ||
spec: | ||
processorPort: "9330" | ||
eventProtocol: | ||
type: "HTTP" | ||
http: | ||
port: "9300" | ||
deploySpec: | ||
metadata: | ||
name: "aws-sns-gateway" | ||
labels: | ||
gateway-name: "aws-sns-gateway" | ||
spec: | ||
containers: | ||
- name: "gateway-client" | ||
image: "argoproj/gateway-client" | ||
imagePullPolicy: "Always" | ||
command: ["/bin/gateway-client"] | ||
- name: "aws-sns-events" | ||
image: "argoproj/aws-sns-gateway" | ||
imagePullPolicy: "Always" | ||
command: ["/bin/aws-sns-gateway"] | ||
serviceAccountName: "argo-events-sa" | ||
configMap: "aws-sns-gateway-configmap" | ||
eventVersion: "1.0" | ||
type: "aws-sns" | ||
watchers: | ||
sensors: | ||
- name: "aws-sns-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# The dependency grouping and selective workflow trigger execution is not supported in latest release | ||
# This feature will be released in next release v0.8. | ||
# You can try this example with sensor and sensor controller image v0.7.1 | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Sensor | ||
metadata: | ||
name: webhook-sensor-http-boolean-op | ||
labels: | ||
sensors.argoproj.io/sensor-controller-instanceid: argo-events | ||
spec: | ||
deploySpec: | ||
containers: | ||
- name: "sensor" | ||
image: "argoproj/sensor" | ||
imagePullPolicy: Always | ||
serviceAccountName: argo-events-sa | ||
# defines list of all events sensor will accept | ||
dependencies: | ||
- name: "webhook-gateway-http:foo" | ||
- name: "webhook-gateway-http:index" | ||
# divides event dependencies into groups | ||
dependencyGroups: | ||
- name: "group_1" | ||
dependencies: | ||
- "webhook-gateway-http:foo" | ||
- name: "group_2" | ||
dependencies: | ||
- "webhook-gateway-http:index" | ||
# either "webhook-gateway-http:foo" or "webhook-gateway-http:index" happens | ||
circuit: "group_1 || group_2" | ||
eventProtocol: | ||
type: "HTTP" | ||
http: | ||
port: "9300" | ||
triggers: | ||
- name: webhook-workflow-trigger | ||
when: | ||
all: | ||
- "group_1" | ||
resource: | ||
namespace: argo-events | ||
group: argoproj.io | ||
version: v1alpha1 | ||
kind: Workflow | ||
source: | ||
inline: | | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: hello-world- | ||
spec: | ||
entrypoint: whalesay | ||
templates: | ||
- name: whalesay | ||
container: | ||
args: | ||
- "hello world" | ||
command: | ||
- cowsay | ||
image: "docker/whalesay:latest" | ||
- name: webhook-workflow-trigger-2 | ||
when: | ||
all: | ||
- "group_2" | ||
resource: | ||
namespace: argo-events | ||
group: argoproj.io | ||
version: v1alpha1 | ||
kind: Workflow | ||
source: | ||
inline: | | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: hello-world-2- | ||
spec: | ||
entrypoint: whalesay | ||
templates: | ||
- name: whalesay | ||
container: | ||
args: | ||
- "hello world" | ||
command: | ||
- cowsay | ||
image: "docker/whalesay:latest" |
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,3 +1,3 @@ | ||
FROM scratch | ||
COPY dist/sns-gateway /bin/ | ||
ENTRYPOINT [ "/bin/sns-gateway" ] | ||
COPY dist/aws-sns-gateway /bin/ | ||
ENTRYPOINT [ "/bin/aws-sns-gateway" ] |
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,3 +1,3 @@ | ||
FROM centos:7 | ||
FROM scratch | ||
COPY dist/resource-gateway /bin/ | ||
ENTRYPOINT [ "/bin/resource-gateway" ] |
Oops, something went wrong.