Skip to content

Commit

Permalink
set one of either port name or port number
Browse files Browse the repository at this point in the history
  • Loading branch information
Timtech4u committed Oct 11, 2023
1 parent c69ead0 commit 7d23142
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ spec:
{{- range $key, $value := $svcPort }}
name: {{ $fullName }}
port:
number: {{ .port }}
{{- if $servicePortName }}
name: {{ $servicePortName}}
name: {{ $servicePortName }}
{{- else }}
number: {{ .port }}
{{- end }}
{{- else }}
serviceName: {{ $fullName }}
Expand Down

0 comments on commit 7d23142

Please sign in to comment.