From 3434cbef96ab38a93c58f79941d81c2cc02844aa Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:43:06 -0500 Subject: [PATCH] AWXMeshIngress route respect external_hostname (#1752) * AwxMeshIngress route respect external_hostname * Set host in AWXMeshIngress route if external_hostname is defined --- roles/mesh_ingress/templates/ingress.yml.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/mesh_ingress/templates/ingress.yml.j2 b/roles/mesh_ingress/templates/ingress.yml.j2 index 6cc10e1f..89ad0378 100644 --- a/roles/mesh_ingress/templates/ingress.yml.j2 +++ b/roles/mesh_ingress/templates/ingress.yml.j2 @@ -70,6 +70,9 @@ metadata: name: {{ ansible_operator_meta.name }} namespace: {{ ansible_operator_meta.namespace }} spec: +{% if external_hostname %} + host: {{ external_hostname }} +{% endif %} port: targetPort: ws tls: