From 199668aa05f3b1f9837b2482a8a73773bdceea76 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:17 +0200 Subject: [PATCH] [stable/joomla] Fix chart not being upgradable (#7845) Signed-off-by: Javier J. Salmeron Garcia --- stable/joomla/Chart.yaml | 2 +- stable/joomla/README.md | 12 ++++++++++++ stable/joomla/templates/deployment.yaml | 4 ++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/stable/joomla/Chart.yaml b/stable/joomla/Chart.yaml index 054af4faa5..0900633dba 100644 --- a/stable/joomla/Chart.yaml +++ b/stable/joomla/Chart.yaml @@ -1,5 +1,5 @@ name: joomla -version: 2.0.9 +version: 3.0.0 appVersion: 3.8.12 description: PHP content management system (CMS) for publishing web content keywords: diff --git a/stable/joomla/README.md b/stable/joomla/README.md index 868934494a..3e497a9cee 100644 --- a/stable/joomla/README.md +++ b/stable/joomla/README.md @@ -134,3 +134,15 @@ The [Bitnami Joomla!](https://github.com/bitnami/bitnami-docker-joomla) image st 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 opencart: + +```console +$ kubectl patch deployment joomla-joomla --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]' +$ kubectl delete statefulset joomla-mariadb --cascade=false +``` diff --git a/stable/joomla/templates/deployment.yaml b/stable/joomla/templates/deployment.yaml index e847b03638..5bed3a74cc 100644 --- a/stable/joomla/templates/deployment.yaml +++ b/stable/joomla/templates/deployment.yaml @@ -9,6 +9,10 @@ metadata: release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: + selector: + matchLabels: + app: {{ template "joomla.fullname" . }} + release: "{{ .Release.Name }}" replicas: 1 template: metadata: