From f2e32a352c9bbd0839dcd6f4f107c6ad37194d1c 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 09:43:08 +0200 Subject: [PATCH] [stable/suitecrm] Fix chart not being upgradable (#7816) * [stable/suitecrm] Fix chart not being upgradable Signed-off-by: Javier J. Salmeron Garcia * Change readme Signed-off-by: Javier J. Salmeron Garcia --- stable/suitecrm/Chart.yaml | 2 +- stable/suitecrm/README.md | 12 ++++++++++++ stable/suitecrm/templates/deployment.yaml | 4 ++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/stable/suitecrm/Chart.yaml b/stable/suitecrm/Chart.yaml index f79b7eee80..16eb8aae10 100644 --- a/stable/suitecrm/Chart.yaml +++ b/stable/suitecrm/Chart.yaml @@ -1,5 +1,5 @@ name: suitecrm -version: 2.0.7 +version: 3.0.0 appVersion: 7.10.9 description: SuiteCRM is a completely open source enterprise-grade Customer Relationship Management (CRM) application. SuiteCRM is a software fork of the popular customer relationship management (CRM) system SugarCRM. keywords: diff --git a/stable/suitecrm/README.md b/stable/suitecrm/README.md index 7ed638fb80..8fda908718 100644 --- a/stable/suitecrm/README.md +++ b/stable/suitecrm/README.md @@ -126,3 +126,15 @@ The [Bitnami SuiteCRM](https://github.com/bitnami/bitnami-docker-suitecrm) image 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 suitecrm: + +```console +$ kubectl patch deployment suitecrm-suitecrm --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]' +$ kubectl delete statefulset suitecrm-mariadb --cascade=false +``` diff --git a/stable/suitecrm/templates/deployment.yaml b/stable/suitecrm/templates/deployment.yaml index ea819f895e..c171575bc8 100644 --- a/stable/suitecrm/templates/deployment.yaml +++ b/stable/suitecrm/templates/deployment.yaml @@ -9,6 +9,10 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: + selector: + matchLabels: + app: {{ template "name" . }} + release: "{{ .Release.Name }}" template: metadata: labels: