From 69e0d56ef85561fe7bd00cff19a7d82dcd0b464f Mon Sep 17 00:00:00 2001 From: Daniel Arteaga Date: Tue, 20 Oct 2020 18:28:45 +0200 Subject: [PATCH] [bitnami/prestashop] fix: init container parsing error (#4061) Signed-off-by: darteaga --- bitnami/prestashop/Chart.yaml | 2 +- bitnami/prestashop/templates/deployment.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bitnami/prestashop/Chart.yaml b/bitnami/prestashop/Chart.yaml index ca61a4795..4bb0bac3e 100644 --- a/bitnami/prestashop/Chart.yaml +++ b/bitnami/prestashop/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: prestashop -version: 11.0.1 +version: 11.0.2 appVersion: 1.7.6-8 description: A popular open source ecommerce solution. Professional tools are easily accessible to increase online sales including instant guest checkout, abandoned cart reminders and automated Email marketing. keywords: diff --git a/bitnami/prestashop/templates/deployment.yaml b/bitnami/prestashop/templates/deployment.yaml index 51e627ffe..3d2eb516e 100644 --- a/bitnami/prestashop/templates/deployment.yaml +++ b/bitnami/prestashop/templates/deployment.yaml @@ -56,7 +56,10 @@ spec: - ip: "127.0.0.1" hostnames: - "status.localhost" - initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }} + initContainers: + {{- if .Values.initContainers }} + {{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }} + {{- end }} {{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }} - name: volume-permissions image: {{ include "prestashop.volumePermissions.image" . }}