Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

fix: set containerPort to targetPort if defined #18

Merged
merged 3 commits into from
Nov 26, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/containers.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{- if .Ports}}
ports:
{{- range .Ports}}
- containerPort: {{.Port}}
- containerPort: {{- if .TargetPort }} {{.TargetPort}} {{- else }} {{.Port}} {{- end}}
Thunderbottom marked this conversation as resolved.
Show resolved Hide resolved
name: {{.Name}}
{{- end}}
{{- end}}
Expand Down