From fab71e054ef4e6063f7cc81d897273fbe038fb66 Mon Sep 17 00:00:00 2001 From: "Christian M. Adams" Date: Mon, 31 Jan 2022 09:40:19 -0500 Subject: [PATCH] Always run database-check initContainer --- roles/installer/templates/deployment.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/installer/templates/deployment.yaml.j2 b/roles/installer/templates/deployment.yaml.j2 index 3a4042f9..90451f03 100644 --- a/roles/installer/templates/deployment.yaml.j2 +++ b/roles/installer/templates/deployment.yaml.j2 @@ -33,7 +33,6 @@ spec: imagePullSecrets: - name: {{ image_pull_secret }} {% endif %} -{% if bundle_ca_crt or projects_persistence|bool or init_container_extra_commands %} initContainers: - name: database-check image: '{{ _init_container_image }}' @@ -51,6 +50,7 @@ spec: - name: check-db-pvc persistentVolumeClaim: claimName: postgres-{{ ansible_operator_meta.name }}-postgres-0 +{% if bundle_ca_crt or projects_persistence|bool or init_container_extra_commands %} - name: init image: '{{ _init_container_image }}' imagePullPolicy: '{{ image_pull_policy }}'