Unverified Commit 100198af authored by Caleb Bron's avatar Caleb Bron Committed by GitHub
Browse files

Merge pull request #29887 from cbron/revert-ingress-version

revert ingress bump [2.5]
parents 94397a0c 9b9aeff7
No related merge requests found
Showing with 1 addition and 15 deletions
+1 -15
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
apiVersion: networking.k8s.io/v1
{{- else }}
apiVersion: networking.k8s.io/v1beta1
{{- end }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ template "rancher.fullname" . }}
......@@ -38,18 +34,8 @@ spec:
http:
paths:
- backend:
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
service:
name: {{ template "rancher.fullname" . }}
port:
number: 80
{{- else }}
serviceName: {{ template "rancher.fullname" . }}
servicePort: 80
{{- end }}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
pathType: ImplementationSpecific
{{- end }}
{{- if eq .Values.tls "ingress" }}
tls:
- hosts:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment