Added conditional to validate that tower_loadbalancer_annotations is defined

This commit is contained in:
Ryland DeGregory
2021-04-08 12:24:56 -04:00
parent 7e3f5047a1
commit 95f04abdfd

View File

@@ -9,7 +9,7 @@ metadata:
app.kubernetes.io/part-of: '{{ meta.name }}'
app.kubernetes.io/managed-by: awx-operator
app.kubernetes.io/component: awx
{% if tower_ingress_type | lower == 'loadbalancer' %}
{% if tower_ingress_type | lower == 'loadbalancer' and tower_loadbalancer_annotations %}
annotations:
{{ tower_loadbalancer_annotations | indent(width=4) }}
{% endif %}