From 26e72b4e1d90561205d3e82413ae85cc76458478 Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Thu, 7 Mar 2024 17:53:48 -0500 Subject: [PATCH] Fix undefined external_hostname when using Route (#1753) --- roles/mesh_ingress/templates/ingress.yml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mesh_ingress/templates/ingress.yml.j2 b/roles/mesh_ingress/templates/ingress.yml.j2 index 89ad0378..42b328d7 100644 --- a/roles/mesh_ingress/templates/ingress.yml.j2 +++ b/roles/mesh_ingress/templates/ingress.yml.j2 @@ -28,7 +28,7 @@ spec: name: {{ ansible_operator_meta.name }} port: number: 27199 -{% if external_hostname %} +{% if external_hostname is defined %} host: {{ external_hostname }} {% endif %} {% endif %} @@ -53,7 +53,7 @@ spec: - services: - name: {{ ansible_operator_meta.name }} port: 27199 -{% if external_hostname %} +{% if external_hostname is defined %} match: HostSNI(`{{ external_hostname }}`) {% endif %} tls: