From 31f6d38cd2e5a12eb4fcf833dbae33e24e275f34 Mon Sep 17 00:00:00 2001
From: Toon Albers <45094749+toonalbers@users.noreply.github.com>
Date: Wed, 13 Sep 2023 13:16:15 +0200
Subject: [PATCH] [cilium] fix: invalid hubble yaml if
 cilium_hubble_tls_generate is enabled (#10430)

---
 roles/network_plugin/cilium/templates/hubble/deploy.yml.j2 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/roles/network_plugin/cilium/templates/hubble/deploy.yml.j2 b/roles/network_plugin/cilium/templates/hubble/deploy.yml.j2
index 6d2b9cb22..86533e6e7 100644
--- a/roles/network_plugin/cilium/templates/hubble/deploy.yml.j2
+++ b/roles/network_plugin/cilium/templates/hubble/deploy.yml.j2
@@ -60,7 +60,8 @@ spec:
           - mountPath: /var/lib/hubble-relay/tls
             name: tls
             readOnly: true
-          {% endif %}
+          {%- endif %}
+
       restartPolicy: Always
       serviceAccount: hubble-relay
       serviceAccountName: hubble-relay
@@ -96,7 +97,8 @@ spec:
                 - key: tls.key
                   path: server.key
         name: tls
-      {% endif %}
+      {%- endif %}
+
 ---
 # Source: cilium/templates/hubble-ui/deployment.yaml
 kind: Deployment
-- 
GitLab