From 03b905f754b7145b3d2b7e3b0dfb0ad3f2d11d2c Mon Sep 17 00:00:00 2001 From: Chris Minton Date: Wed, 18 Sep 2024 10:20:16 +0100 Subject: [PATCH] fix(chart): correctly template actionsmetrics service ports --- .../templates/actionsmetrics.service.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/charts/actions-runner-controller/templates/actionsmetrics.service.yaml b/charts/actions-runner-controller/templates/actionsmetrics.service.yaml index 4ff8830b50..e6a7d1dd46 100644 --- a/charts/actions-runner-controller/templates/actionsmetrics.service.yaml +++ b/charts/actions-runner-controller/templates/actionsmetrics.service.yaml @@ -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 }}