Skip to content

Commit

Permalink
removing port from webhook and revising signal impl (#68)
Browse files Browse the repository at this point in the history
* removing port from webhook and revising signal impl

* using sync map

* fixing webhook client and refactoring Makefile to actually build
  • Loading branch information
magaldima authored Jul 26, 2018
1 parent ddee233 commit 0cb7b7f
Show file tree
Hide file tree
Showing 15 changed files with 345 additions and 325 deletions.
30 changes: 15 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,6 @@ ifdef IMAGE_NAMESPACE
IMAGE_PREFIX=${IMAGE_NAMESPACE}/
endif

.PHONY: protogen
protogen:
./hack/generate-proto.sh

.PHONY: clientgen
clientgen:
./hack/update-codegen.sh

.PHONY: openapigen
openapi-gen:
./hack/update-openapigen.sh

.PHONY: codegen
codegen: clientgen openapigen protogen

# this is the default stream service
STREAM=nats

Expand Down Expand Up @@ -114,3 +99,18 @@ coverage:

clean:
-rm -rf ${CURRENT_DIR}/dist

.PHONY: protogen
protogen:
./hack/generate-proto.sh

.PHONY: clientgen
clientgen:
./hack/update-codegen.sh

.PHONY: openapigen
openapi-gen:
./hack/update-openapigen.sh

.PHONY: codegen
codegen: clientgen openapigen protogen
7 changes: 4 additions & 3 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# Roadmap

## Development Phase
- Simplify logging
- E2E testing
- Documentation
- Implement repeatable sensors
- Add NATS Streaming Signal support
- Add SNS & SQS Signal Support


## Design Phase
- Pluggable Calendar definitions that extend a common Calendar interface
- Pass in credentials for connection to various signal sources
- Implement GC for old sensors

- Implement repeatable sensors

## Idea Phase
- Smarter pod queue processing
- Attach PVC to sensor executor pod spec for storing events
- Use [hashicorp/go-getter](https://github.com/hashicorp/go-getter) for the `ArtifactReader` interface.
- Add [Upspin](https://upspin.io/) as an `Artifact` file source.
3 changes: 1 addition & 2 deletions examples/context-filter-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ spec:
signals:
- name: webhook
webhook:
endpoint: /app
port: 7070
endpoint: /filter/context
method: POST
filters:
context:
Expand Down
3 changes: 1 addition & 2 deletions examples/data-filter-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ spec:
signals:
- name: webhook
webhook:
endpoint: /app
port: 7070
endpoint: /filter/data
method: POST
filters:
data:
Expand Down
2 changes: 1 addition & 1 deletion examples/time-filter-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
signals:
- name: webhook
webhook:
endpoint: /app
endpoint: /filter/time
method: POST
filters:
time:
Expand Down
1 change: 0 additions & 1 deletion examples/webhook-sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ spec:
- name: webhook
webhook:
endpoint: /app
port: 7070
method: POST
triggers:
- name: hello-world-workflow-trigger
Expand Down
1 change: 0 additions & 1 deletion examples/webhook-with-resource-param.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ spec:
- name: webhook
webhook:
endpoint: /hello
port: 7070
method: POST
triggers:
- name: argo-workflow
Expand Down
2 changes: 2 additions & 0 deletions hack/k8s/manifests/services/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
value: 0.0.0.0:8080
- name: MICRO_BROKER_ADDRESS
value: 0.0.0.0:10001
- name: WEBHOOK_PORT
value: 7070
ports:
- containerPort: 8080
name: micro-port
Expand Down
Loading

0 comments on commit 0cb7b7f

Please sign in to comment.