Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Commit 215e0c7

Browse files
authored
[release 0.1.19] Update changelog and docs (#543)
* [release 0.1.19] post and changelog * Update exposed driver example to eventgrid
1 parent d4dd57d commit 215e0c7

File tree

2 files changed

+66
-3
lines changed

2 files changed

+66
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ All notable changes to this project will be documented in this file. For more in
33
[What's New](https://vmware.github.io/dispatch/news) section on Dispatch website.
44

55

6-
## [Unreleased] - [[Git compare](https://github.com/vmware/dispatch/compare/v0.1.18...HEAD)]
6+
## [Unreleased] - [[Git compare](https://github.com/vmware/dispatch/compare/v0.1.19...HEAD)]
7+
8+
### Added
9+
10+
### Fixed
11+
12+
## [0.1.19] - 2018-06-26 [[Git compare](https://github.com/vmware/dispatch/compare/v0.1.18...v0.1.19)] [[What's new](https://vmware.github.io/dispatch/2018/06/26/v0-1-19-release.html)]
713

814
### Added
915

1016
- **Enable Exposed Event Drivers** Events may now be pushed (as opposed to pulled) from event sources to Dispatch. An *exposed*
1117
driver will create an ingress route and service to recieve events.
1218

13-
### Fixed
14-
1519
## [0.1.18] - 2018-06-19 [[Git compare](https://github.com/vmware/dispatch/compare/v0.1.17...v0.1.18)] [[What's new](https://vmware.github.io/dispatch/2018/06/19/v0-1-18-release.html)]
1620

1721
### Fixed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
layout: post
3+
title: "v0.1.19 Dispatch Release"
4+
year: 2018
5+
---
6+
7+
# v0.1.19 Dispatch Release
8+
9+
[Download v0.1.19](https://github.com/vmware/dispatch/releases/tag/v0.1.19)
10+
11+
12+
## Support for Exposed Event Driver
13+
Events may now be pushed (as opposed to pulled) from event sources to Dispatch. An *exposed* driver will create an ingress route and service to recieve events.
14+
When creating event driver type, use `--expose` to create exposed drivers, these drivers will have a URL which events can be pushed to.
15+
```bash
16+
$ dispatch create eventdrivertype eventgrid dispatchframework/events-eventgrid:0.0.1 --expose
17+
Created event driver type: eventgrid
18+
```
19+
The `EXPOSE` field of created event driver type should be true:
20+
```bash
21+
$ dispatch get eventdrivertype
22+
NAME | IMAGE | EXPOSE
23+
-----------------------------------------------------------
24+
eventgrid | dispatchframework/events-eventgrid:0.0.1 | true
25+
-----------------------------------------------------------
26+
```
27+
Next, to create exposed driver:
28+
```bash
29+
$ dispatch create eventdriver eventgrid --name eventgrid
30+
Created event driver: eventgrid
31+
```
32+
And After the driver was created successfully, we should see an URL:
33+
```bash
34+
$ dispatch get eventdriver
35+
NAME | TYPE | STATUS | SECRETS | CONFIG | URL | REASON
36+
-------------------------------------------------------------------------------------------------------
37+
eventgrid | eventgrid | READY | | | https://example.com/driver/dispatch/... |
38+
-------------------------------------------------------------------------------------------------------
39+
```
40+
and we can push events to this URL which the event driver will receive and process:
41+
```bash
42+
$ curl -i https://example.com/driver/dispatch/... -H 'Content-Type: application/cloudevents+json' -d @event.json
43+
HTTP/2 200
44+
server: nginx/1.13.12
45+
date: Tue, 26 Jun 2018 17:53:54 GMT
46+
content-length: 0
47+
strict-transport-security: max-age=15724800; includeSubDomains
48+
```
49+
50+
51+
## Update to Support Latest Cloud Event Implementation
52+
Dispatch now follows the latest [Cloud Events specification](https://github.com/cloudevents/spec/blob/a12b6b618916c89bfa5595fc76732f07f89219b5/spec.md)). `SourceType` and `EventType` were consolidated into one field, after the change, to add a new subscription for the `vm.being.created` event in a vcenter event driver, run:
53+
```bash
54+
$ dispatch create subscription --event-type vm.being.created myFunction
55+
```
56+
57+
Detailed guide [Working with Events](https://vmware.github.io/dispatch/documentation/guides/working-with-events).
58+
59+

0 commit comments

Comments
 (0)