Fix undefined external_hostname when using Route (#1753)

This commit is contained in:
Hao Liu
2024-03-07 17:53:48 -05:00
committed by GitHub
parent 3434cbef96
commit 26e72b4e1d

View File

@@ -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: