Fix variable name for loadbalancerip in template.

The template now checks the existence of the correct variable so that it actually works.
This commit is contained in:
André Liebigt
2023-05-02 13:53:06 +02:00
committed by GitHub
parent 2118c6f49c
commit 562a171de6

View File

@@ -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 %}