Allow (optional) customizing ingress backend

This commit is contained in:
David Burke 2022-08-19 11:06:40 -04:00
parent bd023cd048
commit 383f70c898
5 changed files with 9 additions and 4 deletions

View file

@ -46,6 +46,10 @@ spec:
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- end }}
{{- if .backend }}
backend:
{{- toYaml .backend | nindent 14 }}
{{- else }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
@ -56,6 +60,7 @@ spec:
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}