From 1e721ab2ab0b934d2444635bbc147aabd39049d0 Mon Sep 17 00:00:00 2001
From: "Antoine R. Dumont (@ardumont)" <ardumont@softwareheritage.org>
Date: Mon, 22 May 2023 17:59:52 +0200
Subject: [PATCH] Make lister output their log as json records by default 4/4

Refs. swh/infra/sysadm-environment#4886
---
 swh/templates/listers/deployment.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/swh/templates/listers/deployment.yaml b/swh/templates/listers/deployment.yaml
index 8ab2c40dc..7a82873f2 100644
--- a/swh/templates/listers/deployment.yaml
+++ b/swh/templates/listers/deployment.yaml
@@ -97,7 +97,7 @@ spec:
           value: {{ get $deployment_config "logLevel" | default "INFO" | quote }}
         - name: SWH_CONFIG_FILENAME
           value: /etc/swh/config.yml
-        {{ if $use_json_logger -}}
+        {{ if $use_json_logger }}
         - name: SWH_LOG_CONFIG
           value: /etc/swh/logging-configuration.yml
         {{ end }}
@@ -109,7 +109,7 @@ spec:
             subPath: "pre-stop.sh"
           - name: configuration
             mountPath: /etc/swh
-        {{ if $use_json_logger -}}
+        {{ if $use_json_logger }}
           - name: configuration-template
             mountPath: /etc/swh/logging-configuration.yml
             subPath: "logging-configuration.yml"
-- 
GitLab