From afcc8c43511d51a1e1d478acfaa7bdac8ab4e126 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Wed, 19 Sep 2018 13:04:10 +0200 Subject: [PATCH] [stable/jasperreports] Fix chart not being upgradable Signed-off-by: Javier J. Salmeron Garcia --- stable/jasperreports/Chart.yaml | 2 +- stable/jasperreports/README.md | 11 +++++++++++ stable/jasperreports/templates/deployment.yaml | 4 ++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/stable/jasperreports/Chart.yaml b/stable/jasperreports/Chart.yaml index 72af77fe71a5..96091909585d 100644 --- a/stable/jasperreports/Chart.yaml +++ b/stable/jasperreports/Chart.yaml @@ -1,5 +1,5 @@ name: jasperreports -version: 2.0.4 +version: 3.0.0 appVersion: 7.1.0 description: The JasperReports server can be used as a stand-alone or embedded reporting and BI server that offers web-based reporting, analytic tools and visualization, diff --git a/stable/jasperreports/README.md b/stable/jasperreports/README.md index baad38357e37..e5e0d7ffb660 100644 --- a/stable/jasperreports/README.md +++ b/stable/jasperreports/README.md @@ -105,3 +105,14 @@ The [Bitnami JasperReports](https://github.com/bitnami/bitnami-docker-jasperrepo 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 jasperreports: + +```console +$ kubectl patch deployment jasperreports-jasperreports --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]' +$ kubectl delete statefulset jasperreports-mariadb --cascade=false diff --git a/stable/jasperreports/templates/deployment.yaml b/stable/jasperreports/templates/deployment.yaml index 1679df275338..d4ca76283d4d 100644 --- a/stable/jasperreports/templates/deployment.yaml +++ b/stable/jasperreports/templates/deployment.yaml @@ -8,6 +8,10 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: + selector: + matchLabels: + app: {{ template "jasperreports.fullname" . }} + release: "{{ .Release.Name }}" template: metadata: labels: