mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-07 05:42:55 +00:00
Added conditional to validate that tower_loadbalancer_annotations is defined
This commit is contained in:
@@ -9,7 +9,7 @@ metadata:
|
|||||||
app.kubernetes.io/part-of: '{{ meta.name }}'
|
app.kubernetes.io/part-of: '{{ meta.name }}'
|
||||||
app.kubernetes.io/managed-by: awx-operator
|
app.kubernetes.io/managed-by: awx-operator
|
||||||
app.kubernetes.io/component: awx
|
app.kubernetes.io/component: awx
|
||||||
{% if tower_ingress_type | lower == 'loadbalancer' %}
|
{% if tower_ingress_type | lower == 'loadbalancer' and tower_loadbalancer_annotations %}
|
||||||
annotations:
|
annotations:
|
||||||
{{ tower_loadbalancer_annotations | indent(width=4) }}
|
{{ tower_loadbalancer_annotations | indent(width=4) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user