Skip to content

Commit

Permalink
Fix examples (#138)
Browse files Browse the repository at this point in the history
* Fixing sensor examples

* Fixing controller image version to latest
  • Loading branch information
VaibhavPage authored and magaldima committed Dec 10, 2018
1 parent c6f6636 commit c3e9628
Show file tree
Hide file tree
Showing 49 changed files with 170 additions and 269 deletions.
4 changes: 2 additions & 2 deletions examples/gateways/amqp-gateway-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ kind: ConfigMap
metadata:
name: amqp-gateway-configmap
data:
amqp.fooConfig: |-
foo: |-
url: amqp://amqp.argo-events:5672
exchangeName: fooExchangeName
exchangeType: fanout
routingKey: fooRoutingKey
amqp.barConfig: |-
bar: |-
url: amqp://amqp.argo-events:5672
exchangeName: barExchangeName
exchangeType: fanout
Expand Down
4 changes: 2 additions & 2 deletions examples/gateways/amqp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ spec:
deploySpec:
containers:
- name: amqp-events
image: "argoproj/amqp-gateway:v0.6"
image: "argoproj/amqp-gateway"
imagePullPolicy: "Always"
command: ["/bin/amqp-gateway"]
serviceAccountName: "argo-events-sa"
configMap: "amqp-gateway-configmap"
type: "amqp"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
watchers:
sensors:
- name: "amqp-sensor"
19 changes: 2 additions & 17 deletions examples/gateways/artifact-gateway-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,9 @@ kind: ConfigMap
metadata:
name: artifact-gateway-configmap
data:
s3.fooConfig: |-
input: |-
s3EventConfig:
bucket: workflows
endpoint: minio-service.argo-events:9000
event: s3:ObjectCreated:Put
filter:
prefix: ""
suffix: ""
insecure: true
accessKey:
key: accesskey
name: artifacts-minio
secretKey:
key: secretkey
name: artifacts-minio
s3.barConfig: |-
s3EventConfig:
bucket: workflows
bucket: input
endpoint: minio-service.argo-events:9000
event: s3:ObjectCreated:Put
filter:
Expand Down
4 changes: 2 additions & 2 deletions examples/gateways/artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ spec:
deploySpec:
containers:
- name: "artifact-events"
image: "argoproj/artifact-gateway:v0.6"
image: "argoproj/artifact-gateway"
imagePullPolicy: "Always"
command: ["/bin/artifact-gateway"]
serviceAccountName: "argo-events-sa"
configMap: "artifact-gateway-configmap"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
type: "artifact"
dispatchMechanism: "HTTP"
watchers:
Expand Down
4 changes: 2 additions & 2 deletions examples/gateways/calendar-gateway-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ConfigMap
metadata:
name: calendar-gateway-configmap
data:
calendar.fooConfig: |-
foo: |-
interval: 55s
calendar.barConfig: |-
bar: |-
schedule: 30 * * * *
4 changes: 2 additions & 2 deletions examples/gateways/calendar-grpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ spec:
type: "calendar"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
deploySpec:
containers:
- name: "calendar-events"
image: "argoproj/calendar-grpc-gateway:v0.6"
image: "argoproj/calendar-grpc-gateway"
imagePullPolicy: "Always"
command: ["/bin/calendar-grpc-gateway"]
serviceAccountName: "argo-events-sa"
Expand Down
4 changes: 2 additions & 2 deletions examples/gateways/calendar-http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ spec:
deploySpec:
containers:
- name: "calendar-events"
image: "argoproj/calendar-http-gateway:v0.6"
image: "argoproj/calendar-http-gateway"
imagePullPolicy: "Always"
command: ["/bin/calendar-http"]
serviceAccountName: "argo-events-sa"
configMap: "calendar-gateway-configmap"
type: "calendar"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
watchers:
sensors:
- name: "calendar-sensor"
Expand Down
4 changes: 2 additions & 2 deletions examples/gateways/calendar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ spec:
deploySpec:
containers:
- name: "calendar-events"
image: "argoproj/calendar-gateway:v0.6"
image: "argoproj/calendar-gateway"
imagePullPolicy: "Always"
command: ["/bin/calendar-gateway"]
serviceAccountName: "argo-events-sa"
configMap: "calendar-gateway-configmap"
type: "calendar"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
watchers:
sensors:
- name: "calendar-sensor"
6 changes: 1 addition & 5 deletions examples/gateways/file-gateway-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ kind: ConfigMap
metadata:
name: file-gateway-configmap
data:
file.defaultConfig: |-
bindir: |-
directory: "/bin/"
type: CREATE
path: x.txt
file.xConfig: |-
directory: "/bin/"
type: CREATE
path: x.txt
4 changes: 2 additions & 2 deletions examples/gateways/file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ spec:
deploySpec:
containers:
- name: "file-events"
image: "argoproj/file-gateway:v0.6"
image: "argoproj/file-gateway"
imagePullPolicy: "Always"
command: ["/bin/file-gateway"]
serviceAccountName: "argo-events-sa"
configMap: "file-gateway-configmap"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
type: "file"
dispatchMechanism: "HTTP"
watchers:
Expand Down
2 changes: 1 addition & 1 deletion examples/gateways/gitlab-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ConfigMap
metadata:
name: gitlab-gateway-configmap
data:
gitlab.defaultConfig: |-
project_1: |-
projectId: "1"
url: "YOUR_WEBHOOK_GATEWAY_EXTERNAL_URL"
event: "PushEvents"
Expand Down
4 changes: 2 additions & 2 deletions examples/gateways/gitlab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ spec:
deploySpec:
containers:
- name: "gitlab-events"
image: "argoproj/gitlab-gateway:v0.6"
image: "argoproj/gitlab-gateway"
imagePullPolicy: "Always"
command: ["/bin/gitlab-gateway"]
serviceAccountName: "argo-events-sa"
configMap: "gitlab-gateway-configmap"
type: "gitlab"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
watchers:
sensors:
- name: "gitlab-sensor"
4 changes: 2 additions & 2 deletions examples/gateways/kafka-gateway-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ kind: ConfigMap
metadata:
name: kafka-gateway-configmap
data:
kafka.fooConfig: |-
foo: |-
url: kafka.argo-events:9092
topic: foo
partition: "0"
kafka.barConfig: |-
bar: |-
url: kafka.argo-events:9092
topic: bar
partition: "1"
4 changes: 2 additions & 2 deletions examples/gateways/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ spec:
deploySpec:
containers:
- name: "kafka-events"
image: "argoproj/kafka-gateway:v0.6"
image: "argoproj/kafka-gateway"
imagePullPolicy: "Always"
command: ["/bin/kafka-gateway"]
serviceAccountName: "argo-events-sa"
configMap: "kafka-gateway-configmap"
type: "kafka"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
watchers:
sensors:
- name: "kafka-sensor"
4 changes: 2 additions & 2 deletions examples/gateways/mqtt-gateway-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ kind: ConfigMap
metadata:
name: mqtt-gateway-configmap
data:
mqtt.fooConfig: |-
foo: |-
url: tcp://mqtt.argo-events:1883
topic: foo
mqtt.barConfig: |-
bar: |-
url: tcp://mqtt.argo-events:1883
topic: bar
4 changes: 2 additions & 2 deletions examples/gateways/mqtt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ spec:
deploySpec:
containers:
- name: "mqtt-events"
image: "argoproj/mqtt-gateway:v0.6"
image: "argoproj/mqtt-gateway"
imagePullPolicy: "Always"
command: ["/bin/mqtt-gateway"]
serviceAccountName: "argo-events-sa"
configMap: "mqtt-gateway-configmap"
type: "mqtt"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
watchers:
sensors:
- name: "mqtt-sensor"
4 changes: 2 additions & 2 deletions examples/gateways/multi-watchers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ spec:
type: "webhook"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
deploySpec:
containers:
- name: "webhook-events"
image: "argoproj/webhook-gateway:v0.6"
image: "argoproj/webhook-gateway"
imagePullPolicy: "Always"
command: ["/bin/webhook-gateway"]
serviceAccountName: "argo-events-sa"
Expand Down
6 changes: 3 additions & 3 deletions examples/gateways/nats-gateway-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: ConfigMap
metadata:
name: nats-gateway-configmap
data:
nats.fooConfig: |-
url: nats://nats.argo-events:4222
subject: foo
foo: |-
url: nats://nats.argo-events:4222
subject: foo
4 changes: 2 additions & 2 deletions examples/gateways/nats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ spec:
deploySpec:
containers:
- name: "nats-events"
image: "argoproj/nats-gateway:v0.6"
image: "argoproj/nats-gateway"
imagePullPolicy: "Always"
command: ["/bin/nats-gateway"]
serviceAccountName: "argo-events-sa"
configMap: "nats-gateway-configmap"
type: "nats"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
watchers:
sensors:
- name: "nats-sensor"
4 changes: 2 additions & 2 deletions examples/gateways/resource-gateway-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ConfigMap
metadata:
name: resource-gateway-configmap
data:
resource.fooConfig: |-
foo: |-
namespace: argo-events
group: "argoproj.io"
version: "v1alpha1"
Expand All @@ -12,7 +12,7 @@ data:
labels:
workflows.argoproj.io/phase: Succeeded
name: "my-workflow"
resource.barConfig: |-
bar: |-
namespace: argo-events
group: "k8s.io"
version: "v1"
Expand Down
4 changes: 2 additions & 2 deletions examples/gateways/resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ spec:
deploySpec:
containers:
- name: "resource-events"
image: "argoproj/resource-gateway:v0.6"
image: "argoproj/resource-gateway"
imagePullPolicy: "Always"
command: ["/bin/resource-gateway"]
serviceAccountName: "argo-events-sa"
configMap: "resource-gateway-configmap"
type: "resource"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
watchers:
sensors:
- name: "resource-sensor"
2 changes: 1 addition & 1 deletion examples/gateways/storage-grid-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ConfigMap
metadata:
name: storage-grid-gateway-configmap
data:
storage-grid.defaultConfig: |-
foo: |-
port: "8080"
endpoint: "/"
events:
Expand Down
4 changes: 2 additions & 2 deletions examples/gateways/storage-grid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ spec:
type: "storage_grid"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
deploySpec:
containers:
- name: "storage-grid-events"
image: "argoproj/storage-grid-gateway:v0.6"
image: "argoproj/storage-grid-gateway"
imagePullPolicy: "Always"
serviceAccountName: "argo-events-sa"
serviceSpec:
Expand Down
6 changes: 3 additions & 3 deletions examples/gateways/webhook-gateway-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ kind: ConfigMap
metadata:
name: webhook-gateway-configmap
data:
webhook.portConfig: |-
index: |-
port: "12000"
endpoint: "/bar"
endpoint: "/"
method: "POST"
webhook.fooConfig: |-
foo: |-
endpoint: "/foo"
method: "POST"
7 changes: 3 additions & 4 deletions examples/gateways/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: argoproj.io/v1alpha1
kind: Gateway
metadata:
name: webhook-gateway
namespace: default
labels:
gateways.argoproj.io/gateway-controller-instanceid: argo-events
gateway-name: "webhook-gateway"
Expand All @@ -11,14 +10,14 @@ spec:
type: "webhook"
dispatchMechanism: "HTTP"
eventVersion: "1.0"
imageVersion: "v0.6"
imageVersion: "latest"
deploySpec:
containers:
- name: "webhook-events"
image: "argoproj/webhook-gateway:v0.6"
image: "argoproj/webhook-gateway"
imagePullPolicy: "IfNotPresent"
command: ["/bin/webhook-gateway"]
serviceAccountName: "default"
serviceAccountName: "argo-events-sa"
transformerImage: "argoproj/gateway-http-transformer"
serviceSpec:
selector:
Expand Down
Loading

0 comments on commit c3e9628

Please sign in to comment.