From 95f04abdfdd5050362c19f2f3b30d163d71fdb84 Mon Sep 17 00:00:00 2001 From: Ryland DeGregory Date: Thu, 8 Apr 2021 12:24:56 -0400 Subject: [PATCH] Added conditional to validate that tower_loadbalancer_annotations is defined --- roles/installer/templates/tower_service.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/installer/templates/tower_service.yaml.j2 b/roles/installer/templates/tower_service.yaml.j2 index 7e2e8a1b..321a5909 100644 --- a/roles/installer/templates/tower_service.yaml.j2 +++ b/roles/installer/templates/tower_service.yaml.j2 @@ -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 %}