From 630a5ee1f3995c79e67afe632621a1b1139185be Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Mon, 26 Feb 2024 12:17:37 -0500 Subject: [PATCH] Fix bug where uppercase Route fails (#1731) --- roles/mesh_ingress/tasks/creation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mesh_ingress/tasks/creation.yml b/roles/mesh_ingress/tasks/creation.yml index e96d22294..ab8c4ccb9 100644 --- a/roles/mesh_ingress/tasks/creation.yml +++ b/roles/mesh_ingress/tasks/creation.yml @@ -61,7 +61,7 @@ - name: Default ingress_type to Route if OpenShift set_fact: ingress_type: route - when: is_openshift | bool and ingress_type == 'none' + when: is_openshift | bool and ingress_type | lower == 'none' - name: Apply Ingress resource k8s: @@ -77,7 +77,7 @@ - name: Set external_hostname set_fact: external_hostname: "{{ ingress.result.status.ingress[0].host }}" - when: ingress_type == 'route' + when: ingress_type | lower == 'route' - name: Create other resources k8s: