From c7cfd32c40e27b8aaf57acc84e10aff8f4ba650f Mon Sep 17 00:00:00 2001 From: Hans Kristian Moen Date: Tue, 26 Sep 2023 13:01:28 +0100 Subject: [PATCH] [cilium] fix: invalid hubble yaml if cilium_hubble_tls_generate is enabled (#10430) (#10476) Co-authored-by: Toon Albers <45094749+toonalbers@users.noreply.github.com> --- 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