diff --git a/charts/generic/Chart.yaml b/charts/generic/Chart.yaml index e4a17f0..5da3004 100644 --- a/charts/generic/Chart.yaml +++ b/charts/generic/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: generic description: Generic Chart -version: 1.4.0 +version: 1.4.1 diff --git a/charts/generic/templates/services.yaml b/charts/generic/templates/services.yaml index 627c068..56fbb33 100644 --- a/charts/generic/templates/services.yaml +++ b/charts/generic/templates/services.yaml @@ -24,6 +24,9 @@ spec: {{- range $port := $service.ports }} - port: {{ $port.port }} targetPort: {{ $port.targetPort | default $port.port }} + {{- if $port.name }} + name: {{ $port.name }} + {{- end }} {{- end }} selector: {{ $selectorLabels | nindent 4 }} ---