You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: helm-chart/eoapi-notifier/README.md
+60Lines changed: 60 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,12 +27,32 @@ config:
27
27
database: postgis
28
28
username: postgres
29
29
password: password
30
+
30
31
outputs:
31
32
- type: mqtt
32
33
config:
33
34
broker_host: mqtt-broker
34
35
broker_port: 1883
35
36
37
+
# CloudEvents with direct HTTP endpoint
38
+
- type: cloudevents
39
+
config:
40
+
endpoint: https://example.com/webhook
41
+
source: /eoapi/stac
42
+
event_type: org.eoapi.stac
43
+
44
+
# CloudEvents with KNative object reference (creates SinkBinding)
45
+
- type: cloudevents
46
+
config:
47
+
source: /eoapi/pgstac
48
+
event_type: org.eoapi.stac.item
49
+
destination:
50
+
ref:
51
+
apiVersion: messaging.knative.dev/v1
52
+
kind: Broker
53
+
name: my-channel-1
54
+
namespace: serverless
55
+
36
56
secrets:
37
57
postgresql:
38
58
create: true
@@ -47,3 +67,43 @@ resources:
47
67
cpu: 100m
48
68
memory: 128Mi
49
69
```
70
+
71
+
## KNative SinkBinding Support
72
+
73
+
The chart automatically creates KNative SinkBinding resources when CloudEvents outputs use `destination.ref` configuration. This allows you to reference KNative objects (Brokers, Channels, Services) instead of direct URLs.
74
+
75
+
### Configuration Options
76
+
77
+
CloudEvents outputs support two mutually exclusive destination methods:
78
+
79
+
1. **Direct HTTP endpoint:**
80
+
```yaml
81
+
- type: cloudevents
82
+
config:
83
+
endpoint: https://webhook.example.com
84
+
source: /eoapi/stac
85
+
event_type: org.eoapi.stac
86
+
```
87
+
88
+
2. **KNative object reference:**
89
+
```yaml
90
+
- type: cloudevents
91
+
config:
92
+
source: /eoapi/pgstac
93
+
event_type: org.eoapi.stac.item
94
+
destination:
95
+
ref:
96
+
apiVersion: messaging.knative.dev/v1
97
+
kind: Broker
98
+
name: my-broker
99
+
namespace: default # optional, defaults to chart namespace
100
+
```
101
+
102
+
When using `destination.ref`, the chart creates a SinkBinding that resolves the reference to a URL and injects it via the `K_SINK` environment variable.
0 commit comments