From edb560e37c29c7914c36c558b1e32a1d13b9abd8 Mon Sep 17 00:00:00 2001 From: ycyin <71380489+ycyin@users.noreply.github.com> Date: Sun, 29 Sep 2024 16:06:29 +0800 Subject: [PATCH 1/2] Update ingress.yaml Compatible with K8S 1.17 --- charts/dify/templates/ingress.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/charts/dify/templates/ingress.yaml b/charts/dify/templates/ingress.yaml index 972f57d..ebfdbe6 100644 --- a/charts/dify/templates/ingress.yaml +++ b/charts/dify/templates/ingress.yaml @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: From 1a8545bd7e064f8b0103aebfd7524f39f8c36963 Mon Sep 17 00:00:00 2001 From: ycyin <71380489+ycyin@users.noreply.github.com> Date: Sun, 29 Sep 2024 16:43:35 +0800 Subject: [PATCH 2/2] Update Chart.yaml Upgraded version: Compatible with K8S 1.17 --- charts/dify/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/dify/Chart.yaml b/charts/dify/Chart.yaml index 182a0a3..80e294f 100644 --- a/charts/dify/Chart.yaml +++ b/charts/dify/Chart.yaml @@ -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