Skip to content

Commit

Permalink
get independent targetPort value from port value in service (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihiverlet authored Jan 29, 2024
1 parent a02430f commit c9d3e69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/library-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v2
name: library-chart
version: 1.5.19
version: 1.5.20
type: library
6 changes: 5 additions & 1 deletion charts/library-chart/templates/_service.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,27 @@ spec:
{{- end }}
ports:
- port: {{ .Values.networking.service.port }}
targetPort: {{ .Values.networking.service.port }}
targetPort: {{ default .Values.networking.service.port .Values.networking.service.targetPort }}
protocol: TCP
name: main
{{ if .Values.networking.user }}
{{ if .Values.networking.user.enabled }}
- port: {{ .Values.networking.user.port }}
targetPort: {{ .Values.networking.user.port }}
protocol: TCP
name: user
{{- end }}
{{- end }}
{{ if .Values.spark }}
{{ if .Values.spark.sparkui }}
{{ if .Values.networking.sparkui }}
- port: {{ .Values.networking.sparkui.port }}
targetPort: {{ .Values.networking.sparkui.port }}
protocol: TCP
name: sparkui
{{- end }}
{{- end }}
{{- end }}
selector:
{{- include "library-chart.selectorLabels" . | nindent 4 }}
{{- end }}

0 comments on commit c9d3e69

Please sign in to comment.