Allow (optional) customizing ingress backend
This commit is contained in:
parent
bd023cd048
commit
383f70c898
5 changed files with 9 additions and 4 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue