File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed
charts/postgres-operator-ui/templates Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 11{{- if .Values.ingress.enabled -}}
22{{- $fullName := include "postgres-operator-ui.fullname" . -}}
33{{- $svcPort := .Values.service.port -}}
4- {{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
4+
5+ {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
6+ apiVersion : networking.k8s.io/v1
7+ {{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
58apiVersion : networking.k8s.io/v1beta1
69{{- else -}}
710apiVersion : extensions/v1beta1
3740 paths :
3841 {{- range .paths }}
3942 - path : {{ . }}
43+ {{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}
44+ pathType : ImplementationSpecific
45+ backend :
46+ service :
47+ name : {{ $fullName }}
48+ port :
49+ number : {{ $svcPort }}
50+ {{- else -}}
4051 backend :
4152 serviceName : {{ $fullName }}
4253 servicePort : {{ $svcPort }}
54+ {{- end -}}
4355 {{- end }}
4456 {{- end }}
4557{{- end }}
Original file line number Diff line number Diff line change 1- apiVersion : " networking.k8s.io/v1beta1 "
1+ apiVersion : " networking.k8s.io/v1 "
22kind : " Ingress"
33metadata :
44 name : " postgres-operator-ui"
1010 - host : " ui.example.org"
1111 http :
1212 paths :
13- - backend :
14- serviceName : " postgres-operator-ui"
15- servicePort : 80
13+ - path : /
14+ pathType : ImplementationSpecific
15+ backend :
16+ service :
17+ name : " postgres-operator-ui"
18+ port :
19+ number : 80
You can’t perform that action at this time.
0 commit comments