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:
type: {{ .Values.actionsMetricsServer.service.type }}
ports:
{{ range $_, $port := .Values.actionsMetricsServer.service.ports -}}
- {{ $port | toYaml | nindent 6 }}
{{- end }}
{{- toYaml .Values.actionsMetricsServer.service.ports | nindent 4 }}
{{- if .Values.actionsMetrics.serviceMonitor.enable }}
- name: metrics-port
port: {{ .Values.actionsMetrics.port }}