From fcbf3942727dab91034bad73bfe3ce816bb20f21 Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Wed, 3 Apr 2024 12:16:16 -0400 Subject: [PATCH] Fix "external_hostname" should not be required while using Route ingress (#1807) Fix "external_hostname" required on OCP --- roles/mesh_ingress/templates/ingress.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mesh_ingress/templates/ingress.yml.j2 b/roles/mesh_ingress/templates/ingress.yml.j2 index 42b328d74..a8ea57249 100644 --- a/roles/mesh_ingress/templates/ingress.yml.j2 +++ b/roles/mesh_ingress/templates/ingress.yml.j2 @@ -70,7 +70,7 @@ metadata: name: {{ ansible_operator_meta.name }} namespace: {{ ansible_operator_meta.namespace }} spec: -{% if external_hostname %} +{% if external_hostname is defined %} host: {{ external_hostname }} {% endif %} port: