From 562a171de6f76ac283a79b8a85d293554dbabefe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Liebigt?= Date: Tue, 2 May 2023 13:53:06 +0200 Subject: [PATCH] Fix variable name for loadbalancerip in template. The template now checks the existence of the correct variable so that it actually works. --- roles/installer/templates/networking/service.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/installer/templates/networking/service.yaml.j2 b/roles/installer/templates/networking/service.yaml.j2 index d178a0291..19cd10222 100644 --- a/roles/installer/templates/networking/service.yaml.j2 +++ b/roles/installer/templates/networking/service.yaml.j2 @@ -52,7 +52,7 @@ spec: type: NodePort {% elif service_type | lower == "loadbalancer" %} type: LoadBalancer -{% if variable is defined and variable|length %} +{% if loadbalancer_ip is defined and loadbalancer_ip|length %} loadbalancerip: '{{ loadbalancer_ip }}' {% endif %} {% else %}