Fix Ingress for Kubernetes 1.16 #83

Merged
luhahn merged 2 commits from fix-ingress-pathType into master 2020-12-15 13:34:47 +00:00

View File

@@ -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

View File

@@ -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: