From 04dc22247a4682bd5d6ee6fcfc203dacbadd6138 Mon Sep 17 00:00:00 2001 From: Lee W Date: Wed, 15 Jan 2025 16:24:44 -0700 Subject: [PATCH] Update charts/k8s-monitoring/templates/destinations/_destination_prometheus.tpl Co-authored-by: Pete Wall --- .../templates/destinations/_destination_prometheus.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/k8s-monitoring/templates/destinations/_destination_prometheus.tpl b/charts/k8s-monitoring/templates/destinations/_destination_prometheus.tpl index 5f4738111..06c59d79d 100644 --- a/charts/k8s-monitoring/templates/destinations/_destination_prometheus.tpl +++ b/charts/k8s-monitoring/templates/destinations/_destination_prometheus.tpl @@ -88,7 +88,7 @@ prometheus.remote_write {{ include "helper.alloy_name" .name | quote }} { {{- if .auth.sigv4.roleArn }} role_arn = {{ .auth.sigv4.roleArn | quote }} {{- end }} - {{- if include "secrets.read" (dict "object" . "key" "auth.sigv4.secretKey") }} + {{- if eq (include "secrets.usesSecret" (dict "object" . "key" "auth.sigv4.secretKey")) "true" }} secret_key = {{ include "secrets.read" (dict "object" . "key" "auth.sigv4.secretKey") }} {{- end }} }