Skip to content

Commit

Permalink
Fix bug where uppercase Route fails (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu authored Feb 26, 2024
1 parent 3d78e90 commit 630a5ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/mesh_ingress/tasks/creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 630a5ee

Please sign in to comment.