Skip to content

Commit

Permalink
Updated ingress resources to adapt to K8S 1.17 (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycyin authored Sep 29, 2024
1 parent 75485a0 commit 0087a96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/dify/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.0
version: 0.5.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
10 changes: 10 additions & 0 deletions charts/dify/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ spec:
http:
paths:
- path: /console/api
{{- if semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
Expand All @@ -48,7 +50,9 @@ spec:
servicePort: {{ .Values.api.service.port }}
{{- end }}
- path: /api
{{- if semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
Expand All @@ -60,7 +64,9 @@ spec:
servicePort: {{ .Values.api.service.port }}
{{- end }}
- path: /v1
{{- if semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
Expand All @@ -72,7 +78,9 @@ spec:
servicePort: {{ .Values.api.service.port }}
{{- end }}
- path: /files
{{- if semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
Expand All @@ -84,7 +92,9 @@ spec:
servicePort: {{ .Values.api.service.port }}
{{- end }}
- path: /
{{- if semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
Expand Down

0 comments on commit 0087a96

Please sign in to comment.