From 943eda6d5f62525463c5059a47c9b5b7f8550cef Mon Sep 17 00:00:00 2001 From: luhahn Date: Tue, 15 Dec 2020 21:34:46 +0800 Subject: [PATCH] Fix Ingress for Kubernetes 1.16 (#83) Fix ingress path type for 1.16 Bump chart version Co-authored-by: Lucas Hahn Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/83 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Lunny Xiao Co-Authored-By: luhahn Co-Committed-By: luhahn --- Chart.yaml | 2 +- templates/gitea/ingress.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 9c29900..fdf8393 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: gitea description: Gitea Helm chart for Kubernetes type: application -version: 2.1.1 +version: 2.1.2 appVersion: 1.13.0 icon: https://docs.gitea.io/images/gitea.png diff --git a/templates/gitea/ingress.yaml b/templates/gitea/ingress.yaml index e6e2dc6..f1a03c1 100644 --- a/templates/gitea/ingress.yaml +++ b/templates/gitea/ingress.yaml @@ -34,7 +34,9 @@ spec: http: paths: - path: / + {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }} pathType: Prefix + {{- end }} backend: {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }} service: