fix(chart): correctly template actionsmetrics service ports

This commit is contained in:
Chris Minton 2024-09-18 10:20:16 +01:00
parent 90b68fec1a
commit 03b905f754
No known key found for this signature in database
GPG Key ID: F3DAB73BA789305A
1 changed files with 1 additions and 3 deletions

View File

@ -13,9 +13,7 @@ metadata:
spec: spec:
type: {{ .Values.actionsMetricsServer.service.type }} type: {{ .Values.actionsMetricsServer.service.type }}
ports: ports:
{{ range $_, $port := .Values.actionsMetricsServer.service.ports -}} {{- toYaml .Values.actionsMetricsServer.service.ports | nindent 4 }}
- {{ $port | toYaml | nindent 6 }}
{{- end }}
{{- if .Values.actionsMetrics.serviceMonitor.enable }} {{- if .Values.actionsMetrics.serviceMonitor.enable }}
- name: metrics-port - name: metrics-port
port: {{ .Values.actionsMetrics.port }} port: {{ .Values.actionsMetrics.port }}