Skip to content

Commit f45c6f3

Browse files
CopilotLeoQuote
andauthored
Add /triggers ingress path for webhook support (#155)
* Initial plan * Add /triggers path to dify ingress template for webhook support Co-authored-by: LeoQuote <4143818+LeoQuote@users.noreply.github.com> * Bump chart version to 0.8.2 Co-authored-by: LeoQuote <4143818+LeoQuote@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: LeoQuote <4143818+LeoQuote@users.noreply.github.com>
1 parent c678de4 commit f45c6f3

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

charts/dify/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type: application
2020
# This is the chart version. This version number should be incremented each time you make changes
2121
# to the chart and its templates, including the app version.
2222
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23-
version: 0.8.1
23+
version: 0.8.2
2424

2525
# This is the version number of the application being deployed. This version number should be
2626
# incremented each time you make changes to the application. Versions are not expected to

charts/dify/templates/ingress.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,20 @@ spec:
119119
serviceName: {{ $fullName }}-plugin-daemon
120120
servicePort: {{ .Values.pluginDaemon.service.port }}
121121
{{- end }}
122+
- path: /triggers
123+
{{- if semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion }}
124+
pathType: Prefix
125+
{{- end }}
126+
backend:
127+
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
128+
service:
129+
name: {{ $fullName }}-api-svc
130+
port:
131+
number: {{ .Values.api.service.port }}
132+
{{- else }}
133+
serviceName: {{ $fullName }}-api-svc
134+
servicePort: {{ .Values.api.service.port }}
135+
{{- end }}
122136
- path: /
123137
{{- if semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion }}
124138
pathType: Prefix

0 commit comments

Comments
 (0)