Skip to content

Commit

Permalink
Container port as port name
Browse files Browse the repository at this point in the history
  • Loading branch information
dzsak committed Feb 5, 2024
1 parent 51208eb commit 6a3e7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/onechart/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
{{- end }}
{{- else }}
{{- range .Values.ports }}
- name: {{ if .name }}{{ .name }}{{ else if .svcPort }}{{ printf "tcp-%g" .svcPort }}{{ end }}
- name: {{ if .name }}{{ .name }}{{ else if .svcPort }}{{ printf "tcp-%g" .svcPort }}{{ else if .containerPort }}{{ printf "tcp-%g" .containerPort }}{{ end }}
port: {{ if .svcPort }}{{ .svcPort }}{{ else }}{{ .containerPort }}{{ end }}
{{- if .nodePort }}
nodePort: {{ .nodePort }}
Expand Down

0 comments on commit 6a3e7e5

Please sign in to comment.