File tree Expand file tree Collapse file tree
charts/lighthouse-webui-plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{{- if .Values.ingress.enabled -}}
22
33---
4- apiVersion : networking.k8s.io/v1beta1
4+ apiVersion : {{ .Values.ingress.apiVersion }}
55kind : Ingress
66metadata :
77 name : {{ include "webui.fullname" . }}
@@ -21,6 +21,7 @@ metadata:
2121 {{- end }}
2222spec :
2323 rules :
24+ {{- if eq .Values.ingress.apiVersion "networking.k8s.io/v1beta1" }}
2425 {{- range .Values.ingress.hosts }}
2526 - host : {{ tpl . $ }}
2627 http :
2930 serviceName : {{ include "webui.fullname" $ }}
3031 servicePort : http
3132 {{- end }}
33+ {{- else }}
34+ {{- $pathType := .Values.ingress.pathType | default "ImplementationSpecific" -}}
35+ {{- range .Values.ingress.hosts }}
36+ - host : {{ tpl . $ }}
37+ http :
38+ paths :
39+ - pathType : {{ $pathType }}
40+ backend :
41+ service :
42+ name : {{ include "webui.fullname" $ }}
43+ port :
44+ name : http
45+ {{- end }}
46+ {{- end }}
3247
3348 {{- if .Values.ingress.tls.enabled }}
3449 tls :
Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ ingress:
7676 labels : {}
7777 annotations : {}
7878
79+ apiVersion : " networking.k8s.io/v1beta1"
80+ pathType : " ImplementationSpecific"
81+
7982 # hosts:
8083 # - lighthouse.example.com
8184 # - lighthouse.foo.bar
You can’t perform that action at this time.
0 commit comments