From 3d76170c4df8529ff2fa55e3c03694dc1508b1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20J=2E=20Salmer=C3=B3n-Garc=C3=ADa?= Date: Thu, 20 Sep 2018 16:47:07 +0200 Subject: [PATCH] [stable/prestashop] Fix chart not being upgradable (#7843) Signed-off-by: Javier J. Salmeron Garcia --- stable/prestashop/Chart.yaml | 2 +- stable/prestashop/README.md | 12 ++++++++++++ stable/prestashop/templates/deployment.yaml | 4 ++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/stable/prestashop/Chart.yaml b/stable/prestashop/Chart.yaml index e95897b895..b9880e67a5 100644 --- a/stable/prestashop/Chart.yaml +++ b/stable/prestashop/Chart.yaml @@ -1,5 +1,5 @@ name: prestashop -version: 2.0.8 +version: 3.0.0 appVersion: 1.7.4-2 description: A popular open source ecommerce solution. Professional tools are easily accessible to increase online sales including instant guest checkout, abandoned diff --git a/stable/prestashop/README.md b/stable/prestashop/README.md index a063d6c78f..1ae56df5fd 100644 --- a/stable/prestashop/README.md +++ b/stable/prestashop/README.md @@ -137,3 +137,15 @@ The [Bitnami PrestaShop](https://github.com/bitnami/bitnami-docker-prestashop) i Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube. See the [Configuration](#configuration) section to configure the PVC or to disable persistence. + +## Upgrading + +### To 3.0.0 + +Backwards compatibility is not guaranteed unless you modify the labels used on the chart's deployments. +Use the workaround below to upgrade from versions previous to 3.0.0. The following example assumes that the release name is prestashop: + +```console +$ kubectl patch deployment prestashop-prestashop --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]' +$ kubectl delete statefulset prestashop-mariadb --cascade=false +``` diff --git a/stable/prestashop/templates/deployment.yaml b/stable/prestashop/templates/deployment.yaml index ac38ea3fbf..b62bc78294 100644 --- a/stable/prestashop/templates/deployment.yaml +++ b/stable/prestashop/templates/deployment.yaml @@ -9,6 +9,10 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: + selector: + matchLabels: + app: {{ template "prestashop.fullname" . }} + release: "{{ .Release.Name }}" template: metadata: labels: