File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1
1
{{- if index .Values "argo-events" "enabled" }}
2
2
{{- range $eventSource := $.Values.eventSources }}
3
- {{- if eq $eventSource.name "webhook" }}
4
3
---
5
4
apiVersion : argoproj.io/v1alpha1
6
5
kind : EventSource
7
6
metadata :
8
- name : webhook
7
+ name : {{ $eventSource.name }}
9
8
spec :
10
9
service :
11
10
ports :
12
11
- port : {{$eventSource.port }}
13
12
targetPort : {{$eventSource.port }}
13
+ {{- if $eventSource.webhook }}
14
14
webhook :
15
- # event-source can run multiple HTTP servers. Simply define a unique port to start a new HTTP server
16
- example :
17
- # port to run HTTP server on
18
- port : " {{$eventSource.port }}"
19
- # endpoint to listen to
20
- endpoint : /{{ $eventSource.endpoint }}
21
- # HTTP request method to allow. In this case, only POST requests are accepted
22
- method : POST
23
- {{- end }}
15
+ {{- $eventSource.webhook | toYaml | nindent 6 }}
16
+ {{- end }}
24
17
{{- end }}
25
18
{{- end }}
Original file line number Diff line number Diff line change @@ -25,4 +25,13 @@ eventBuses:
25
25
eventSources :
26
26
- name : webhook
27
27
port : 12000
28
- endpoint : example
28
+ webhook :
29
+ # event-source can run multiple HTTP servers. Simply define a unique port to start a new HTTP server
30
+ example :
31
+ # port to run HTTP server on
32
+ port : " 12000"
33
+ # endpoint to listen to
34
+ endpoint : /example
35
+ # HTTP request method to allow. In this case, only POST requests are accepted
36
+ method : POST
37
+
You can’t perform that action at this time.
0 commit comments