From 1ddbef61059664aa7333550d6dedacb16dad2ca4 Mon Sep 17 00:00:00 2001 From: "h-dev.inns-tools.ext" Date: Wed, 30 Jun 2021 20:43:33 +0200 Subject: [PATCH] add image_pull_secret to postgres install --- roles/installer/templates/postgres.yaml.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/installer/templates/postgres.yaml.j2 b/roles/installer/templates/postgres.yaml.j2 index d5b5ee1c..d17ee12a 100644 --- a/roles/installer/templates/postgres.yaml.j2 +++ b/roles/installer/templates/postgres.yaml.j2 @@ -33,6 +33,10 @@ spec: app.kubernetes.io/part-of: '{{ meta.name }}' app.kubernetes.io/managed-by: '{{ deployment_type }}-operator' spec: +{% if image_pull_secret %} + imagePullSecrets: + - name: {{ image_pull_secret }} +{% endif %} containers: - image: '{{ postgres_image }}:{{ postgres_image_version }}' imagePullPolicy: '{{ image_pull_policy }}'