From 0bb519ab2ff2ac863063b3675b5bf30698fadd6a Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Mon, 10 Jun 2024 08:54:34 -0600 Subject: [PATCH] fix: svc template promtail bugfix Signed-off-by: Micah Nagel --- charts/promtail/Chart.yaml | 2 +- charts/promtail/templates/service-metrics.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/promtail/Chart.yaml b/charts/promtail/Chart.yaml index 24fa5edac6..d412ab048a 100644 --- a/charts/promtail/Chart.yaml +++ b/charts/promtail/Chart.yaml @@ -3,7 +3,7 @@ name: promtail description: Promtail is an agent which ships the contents of local logs to a Loki instance type: application appVersion: 3.0.0 -version: 6.16.0 +version: 6.16.1 home: https://grafana.com/loki sources: - https://github.com/grafana/loki diff --git a/charts/promtail/templates/service-metrics.yaml b/charts/promtail/templates/service-metrics.yaml index 89602d6c44..502fbd9f7e 100644 --- a/charts/promtail/templates/service-metrics.yaml +++ b/charts/promtail/templates/service-metrics.yaml @@ -6,7 +6,9 @@ metadata: namespace: {{ include "promtail.namespaceName" . }} labels: {{- include "promtail.labels" . | nindent 4 }} + {{- if .Values.service.labels }} {{- toYaml .Values.service.labels | nindent 4 }} + {{- end }} annotations: {{- toYaml .Values.service.annotations | nindent 4 }} spec: